W3C home > Mailing lists > Public > public-html-diffs@w3.org > December 2008

spec/Overview.html 1.1673 2502 Lower-case the DOCTYPE name so that UAs

From: poot <cvsmail@w3.org>
Date: Tue, 2 Dec 2008 11:48:16 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20081202024816.960872BBED@toro.w3.mag.keio.ac.jp>

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). (whatwg r2502)

8.2.4.25 DOCTYPE name state
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1673.html#doctype-name-state
8.2.4.24 Before DOCTYPE name state
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1673.html#before-doctype-name-state
8.2.5.4 The "initial" insertion mode
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1673.html#the-initial-insertion-mode
DOCTYPE parse error
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1673.html#doctype-parse-error

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1672&r2=1.1673&f=h
http://html5.org/tools/web-apps-tracker?from=2501&to=2502

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1672
retrieving revision 1.1673
diff -u -d -r1.1672 -r1.1673
--- Overview.html	2 Dec 2008 02:30:31 -0000	1.1672
+++ Overview.html	2 Dec 2008 02:45:19 -0000	1.1673
@@ -37644,6 +37644,12 @@
    <i>force-quirks flag</i> to <i>on</i>. Emit the token. Switch to
    the <a href=#data-state>data state</a>.</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 <a href=#doctype-name-state>DOCTYPE name
+   state</a>.</dd>
+
    <dt>EOF</dt>
    <dd><a href=#parse-error>Parse error</a>. Create a new DOCTYPE token. Set its
    <i>force-quirks flag</i> to <i>on</i>. Emit the token. Reconsume
@@ -37665,6 +37671,11 @@
    <dd>Emit the current DOCTYPE token. Switch to the <a href=#data-state>data
    state</a>.</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 <a href=#doctype-name-state>DOCTYPE name state</a>.</dd>
+
    <dt>EOF</dt>
    <dd><a href=#parse-error>Parse error</a>. Set the DOCTYPE token's
    <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
@@ -38336,16 +38347,17 @@
    <dt>A DOCTYPE token</dt>
    <dd>
 
-    <p>If the DOCTYPE token's <code title="">name</code> is not an
-    <a href=#ascii-case-insensitive>ASCII case-insensitive</a> 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 <a href=#parse-error>parse error</a> (this is the
-    <dfn id=doctype-parse-error>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
+    <a href=#case-sensitive>case-sensitive</a> match for the string "<code title="">html</code>", or if the token's public identifier is
+    neither missing nor a <a href=#case-sensitive>case-sensitive</a> match for the
+    string "<code>XSLT-compat</code>", or if the token's system
+    identifier is not missing, then there is a <a href=#parse-error>parse
+    error</a> (this is the <dfn id=doctype-parse-error>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>
Received on Tuesday, 2 December 2008 02:48:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:13:57 GMT