more doctype tokenization

if we're going to be a standards-compliant tokenizer, we should know a doctype when we see one, as tedious as it is to implement.

If WHATWG wrote the JSON spec it would be at least 100 pages.