support for html doctype declarations