This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
When the page does not define a DOCTYPE, for validation purposes, we append a fake XHTML Basic 1.1 doctype declaration. The code takes care of resetting systemDoctype afterwards, but does not reset publicDoctype. The resulting moki thus contains: <doctypeDecl publicID="-//W3C//DTD XHTML Basic 1.1//EN"/> instead of <doctypeDecl publiID="" /> See test: CONTENT_FORMAT_SUPPORT 2 Code: HTTPXHTMLResource.java validateMobile body = htmlRootPattern .matcher(rawbody) .replaceFirst( "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML Basic 1.1//EN\" \"http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd\"><html$1");