NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 404 - Lower-case the DOCTYPE name so that UAs can do case-sensitive matches on interned strings instead of case-insensitive matches. DOCTYPE name is now lowercase in the DOM (to match XHTML case -- might as well keep the differences minimal).
Lower-case the DOCTYPE name so that UAs can do case-sensitive matches on inte...
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Nobody
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-04 16:51 CET by Henri Sivonen
Modified: 2009-11-23 17:17 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2009-01-04 16:51:31 CET
Index: source
===================================================================
--- source	(revision 2501)
+++ source	(revision 2502)
@@ -53545,6 +53545,12 @@
    <i>force-quirks flag</i> to <i>on</i>. Emit the token. Switch to
    the <span>data state</span>.</dd>
 
+   <dt>U+0041 LATIN CAPITAL LETTER A through to U+005A LATIN CAPITAL LETTER Z</dt>
+   <dd>Create a new DOCTYPE token. Set the token's name to the
+   lowercase version of the input character (add 0x0020 to the
+   character's code point). Switch to the <span>DOCTYPE name
+   state</span>.</dd>
+
    <dt>EOF</dt>
    <dd><span>Parse error</span>. Create a new DOCTYPE token. Set its
    <i>force-quirks flag</i> to <i>on</i>. Emit the token. Reconsume
@@ -53575,6 +53581,11 @@
    <dd>Emit the current DOCTYPE token. Switch to the <span>data
    state</span>.</dd>
 
+   <dt>U+0041 LATIN CAPITAL LETTER A through to U+005A LATIN CAPITAL LETTER Z</dt>
+   <dd>Append the lowercase version of the input character (add 0x0020
+   to the character's code point) to the current DOCTYPE token's
+   name. Stay in the <span>DOCTYPE name state</span>.</dd>
+
    <dt>EOF</dt>
    <dd><span>Parse error</span>. Set the DOCTYPE token's
    <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
@@ -54467,17 +54478,18 @@
    <dt>A DOCTYPE token</dt>
    <dd>
 
-    <p>If the DOCTYPE token's <code title="">name</code> is not an
-    <span>ASCII case-insensitive</span> match for the string "<code
-    title="">HTML</code>", or if the token's public identifier is
-    neither missing nor equal to the string
-    "<code>XSLT-compat</code>", or if the token's system identifier is
-    not missing, then there is a <span>parse error</span> (this is the
-    <dfn>DOCTYPE parse error</dfn>). Conformance checkers may, instead
-    of reporting this error, switch to a conformance checking mode for
-    another language (e.g. based on the DOCTYPE token a conformance
-    checker could recognize that the document is an HTML4-era
-    document, and defer to an HTML4 conformance checker.)</p>
+    <p>If the DOCTYPE token's <code title="">name</code> is not a
+    <span>case-sensitive</span> match for the string "<code
+    title="">html</code>", or if the token's public identifier is
+    neither missing nor a <span>case-sensitive</span> match for the
+    string "<code>XSLT-compat</code>", or if the token's system
+    identifier is not missing, then there is a <span>parse
+    error</span> (this is the <dfn>DOCTYPE parse
+    error</dfn>). Conformance checkers may, instead of reporting this
+    error, switch to a conformance checking mode for another language
+    (e.g. based on the DOCTYPE token a conformance checker could
+    recognize that the document is an HTML4-era document, and defer to
+    an HTML4 conformance checker.)</p>
 
     <p>Append a <code>DocumentType</code> node to the
     <code>Document</code> node, with the <code title="">name</code>