[html5] r1945 - [] (0) Make data-* always lowercase.
whatwg at whatwg.org
whatwg at whatwg.org
Fri Jul 25 16:59:24 PDT 2008
Author: ianh
Date: 2008-07-25 16:59:24 -0700 (Fri, 25 Jul 2008)
New Revision: 1945
Modified:
index
source
Log:
[] (0) Make data-* always lowercase.
Modified: index
===================================================================
--- index 2008-07-25 23:01:32 UTC (rev 1944)
+++ index 2008-07-25 23:59:24 UTC (rev 1945)
@@ -7969,9 +7969,14 @@
<p>A <dfn id=custom>custom data attribute</dfn> is an attribute whose name
starts with the string "<dfn id=data-
title="attr-data-*"><code>data-</code></dfn>", has at least one character
- after the hyphen, is <a href="#xml-compatible">XML-compatible</a>, and has
- no namespace.
+ after the hyphen, is <a href="#xml-compatible">XML-compatible</a>, has no
+ namespace, and contains no characters in the range U+0041 .. U+005A (LATIN
+ CAPITAL LETTER A LATIN CAPITAL LETTER Z).
+ <p class=note>All attributes in <a href="#html-">HTML documents</a> get
+ lowercased automatically, so the restriction on uppercase letters doesn't
+ affect such documents.
+
<p><a href="#custom" title="custom data attribute">Custom data
attributes</a> are intended to store custom data private to the page or
application, for which there are no more appropriate attributes or
@@ -7996,7 +8001,8 @@
<dd>
<ol>
<li>Let <var title="">name</var> be the concatenation of the string
- <code title="">data-</code> and the name passed to the algorithm.
+ <code title="">data-</code> and the name passed to the algorithm, <a
+ href="#converting0">converted to lowercase</a>.
<li>If the element does not have an attribute with the name <var
title="">name</var>, then the name has no corresponding value, abort.
@@ -8010,7 +8016,8 @@
<dd>
<ol>
<li>Let <var title="">name</var> be the concatenation of the string
- <code title="">data-</code> and the name passed to the algorithm.
+ <code title="">data-</code> and the name passed to the algorithm, <a
+ href="#converting0">converted to lowercase</a>.
<li>Let <var title="">value</var> be the value passed to the algorithm.
@@ -8027,7 +8034,8 @@
<dd>
<ol>
<li>Let <var title="">name</var> be the concatenation of the string
- <code title="">data-</code> and the name passed to the algorithm.
+ <code title="">data-</code> and the name passed to the algorithm, <a
+ href="#converting0">converted to lowercase</a>.
<li>Remove the attribute with the name <var title="">name</var>, if such
an attribute exists. Do nothing otherwise.
@@ -35947,7 +35955,7 @@
document</a>, or otherwise any ports in that document's <a
href="#list-of3">list of message ports</a>, if the document is not the <a
href="#active">active document</a>, must be <span>deactivated</span> and
- unentangled..
+ unentangled.
<p class=big-issue>Also, <code title=event-unload>unload</code> events
should fire.
Modified: source
===================================================================
--- source 2008-07-25 23:01:32 UTC (rev 1944)
+++ source 2008-07-25 23:59:24 UTC (rev 1945)
@@ -5954,9 +5954,14 @@
<p>A <dfn>custom data attribute</dfn> is an attribute whose name
starts with the string "<dfn
title="attr-data-*"><code>data-</code></dfn>", has at least one
- character after the hyphen, is <span>XML-compatible</span>, and has
- no namespace.</p>
+ character after the hyphen, is <span>XML-compatible</span>, has no
+ namespace, and contains no characters in the range U+0041 .. U+005A
+ (LATIN CAPITAL LETTER A LATIN CAPITAL LETTER Z).</p>
+ <p class="note">All attributes in <span>HTML documents</span> get
+ lowercased automatically, so the restriction on uppercase letters
+ doesn't affect such documents.</p>
+
<p><span title="custom data attribute">Custom data attributes</span>
are intended to store custom data private to the page or
application, for which there are no more appropriate attributes or
@@ -5983,7 +5988,7 @@
<li>Let <var title="">name</var> be the concatenation of the
string <code title="">data-</code> and the name passed to the
- algorithm.</li>
+ algorithm, <span>converted to lowercase</span>.</li>
<li>If the element does not have an attribute with the name <var
title="">name</var>, then the name has no corresponding value,
@@ -6002,7 +6007,7 @@
<li>Let <var title="">name</var> be the concatenation of the
string <code title="">data-</code> and the name passed to the
- algorithm.</li>
+ algorithm, <span>converted to lowercase</span>.</li>
<li>Let <var title="">value</var> be the value passed to the
algorithm.</li>
@@ -6025,7 +6030,7 @@
<li>Let <var title="">name</var> be the concatenation of the
string <code title="">data-</code> and the name passed to the
- algorithm.</li>
+ algorithm, <span>converted to lowercase</span>.</li>
<li>Remove the attribute with the name <var title="">name</var>,
if such an attribute exists. Do nothing otherwise.</li>
@@ -33410,7 +33415,7 @@
document</span>, or otherwise any ports in that document's
<span>list of message ports</span>, if the document is not the
<span>active document</span>, must be <span>deactivated</span> and
- unentangled..</p>
+ unentangled.</p>
<p class="big-issue">Also, <code title="event-unload">unload</code>
events should fire.</p>
More information about the Commit-Watchers
mailing list