Implement declaration and doctype.