This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The validator does not accept the HTML5 legacy doctype: http://www.w3.org/TR/html5/syntax.html#doctype-legacy-string There are two variants of this doctype: <!DOCTYPE html SYSTEM "about:legacy-compat"> <!DOCTYPE html SYSTEM 'about:legacy-compat'> I would support putting out a warning - e.g. one could just quote what the spec says: ]] The DOCTYPE legacy string should not be used unless the document is generated from a system that cannot output the shorter string. [[ But it does not make sense to stamp is as invalid, like the validator currently does, when the spec says that it is valid.
The cause of this is in the HTML parser code, so I recommend raising a bug for it against the HTML parser component at http://bugzilla.validator.nu The current HTML parser code actually does specifically recognize "about:legacy-compat". It's just that it also specifically emits an error message for it instead of a warning, or instead of emitting nothing. I'm not sure why Henri has it doing that, but given the fact the spec says it's not an error, it seems like it should not at least not be emitting an error. My vote would be for it to emit a specific warning saying, "The DOCTYPE legacy string should not be used unless the document is generated from a system that cannot output <!DOCTYPE html>."
(In reply to comment #1) > The cause of this is in the HTML parser code, so I recommend raising a bug for > it against the HTML parser component at http://bugzilla.validator.nu Done: http://bugzilla.validator.nu/show_bug.cgi?id=916
https://hg.mozilla.org/projects/htmlparser/rev/98b4f408aa67 Needs Mike to redeploy at the W3C.