'Encountered DOCTYPE
This is really grotty: it basically just gives you everything between
\'<!DOCTYPE\' and \'>\' as an argument.'

def gotDoctype(self, doctype):

    print('!DOCTYPE', repr(doctype))
