[Webkit-unassigned] [Bug 17722] New: HTML5 spec violation: </><!doctype html> or </x><!doctype html> SHOULD NOT imply standards mode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Mar 8 03:29:40 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=17722
Summary: HTML5 spec violation: </><!doctype html> or
</x><!doctype html> SHOULD NOT imply standards mode
Product: WebKit
Version: 525+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: webkit at blaut.biz
The code: </><!doctype html> or </x><!doctype html> makes Webkit to render page
in standards mode (CSS1Compat).
According to HTML5 spec:
"Documents must consist of the following parts, in the given order:
1. Optionally, a single U+FEFF BYTE ORDER MARK (BOM) character.
2. Any number of comments and space characters.
3. A DOCTYPE."
Only BOM, comments and space characters are allowed before DOCTYPE.
Steps to reproduce:
1) Go to a page:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%20%3C%2F%3E%3C!doctype%20html%3E%0A
and notice "CSS1Compat" in log section.
Expected result:
BackCompat in log section
Current result:
CSS1Compat in log section
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list