[html5] r1709 - /

whatwg at whatwg.org whatwg at whatwg.org
Tue May 27 02:51:20 PDT 2008


Author: ianh
Date: 2008-05-27 02:51:19 -0700 (Tue, 27 May 2008)
New Revision: 1709

Modified:
   index
   source
Log:
[ac] (0) Make data-='' invalid.

Modified: index
===================================================================
--- index	2008-05-27 07:25:21 UTC (rev 1708)
+++ index	2008-05-27 09:51:19 UTC (rev 1709)
@@ -6776,9 +6776,10 @@
    <dd><code title=handler-onunload><a href="#onunload">onunload</a></code>
   </dl>
 
-  <p>Also, any attribute starting with the string "<code
-   title="attr-data-*"><a href="#data-">data-</a></code>" can be specified on
-   any <span>HTML element</span>, to store custom data specific to the page.
+  <p>Also, <a href="#custom" title="custom data attribute">custom data
+   attributes</a> (e.g. <code title="">data-foldername</code> or <code
+   title="">data-msgid</code>) can be specified on any <span>HTML
+   element</span>, to store custom data specific to the page.
 
   <p>In <a href="#html-">HTML documents</a>, the <code><a
    href="#html">html</a></code> element, and any other elements in the <a
@@ -7096,14 +7097,20 @@
   <h4 id=embedding><span class=secno>3.4.8 </span><dfn
    id=embedding0>Embedding custom non-visible data</dfn></h4>
 
-  <p>Every <a href="#html-elements" title="HTML elements">HTML element</a>
-   may have any number of attributes starting with the string "<dfn id=data-
-   title="attr-data-*"><code>data-</code></dfn>" specified, with any value.
+  <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>" and has at least one
+   character after the hyphen.
 
-  <p>These are intended to store custom data private to the page or
+  <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
    elements.
 
+  <p>Every <a href="#html-elements" title="HTML elements">HTML element</a>
+   may have any number of <a href="#custom" title="custom data
+   attribute">custom data attributes</a> specified, with any value.
+
   <p>The <dfn id=dataset title=dom-dataset><code>dataset</code></dfn> DOM
    attribute provides convenient accessors for all the <code
    title="attr-data-*"><a href="#data-">data-*</a></code> attributes on an
@@ -7183,9 +7190,6 @@
    attributes or values. Specifications intended for user agents must not
    define these attributes to have any meaningful values.
 
-  <p class=big-issue>So here we're saying that microformats shouldn't use
-   this... is that what we want?
-
   <h3 id=interaction><span class=secno>3.5 </span><dfn
    id=interaction0>Interaction</dfn></h3>
   <!--

Modified: source
===================================================================
--- source	2008-05-27 07:25:21 UTC (rev 1708)
+++ source	2008-05-27 09:51:19 UTC (rev 1709)
@@ -5195,11 +5195,11 @@
    <dd><code title="handler-onunload">onunload</code></dd>
   </dl>
 
-  <p>Also, any attribute starting with the string "<code
-  title="attr-data-*">data-</code>" can be specified on any <span>HTML
+  <p>Also, <span title="custom data attribute">custom data
+  attributes</span> (e.g. <code title="">data-foldername</code> or
+  <code title="">data-msgid</code>) can be specified on any <span>HTML
   element</span>, to store custom data specific to the page.</p>
 
-
   <p>In <span>HTML documents</span>, the <code>html</code> element,
   and any other elements in the <span>HTML namespace</span> whose
   parent element is not in the <span>HTML namespace</span>, may have
@@ -5523,15 +5523,20 @@
 
   <h4><dfn>Embedding custom non-visible data</dfn></h4>
 
-  <p>Every <span title="HTML elements">HTML element</span> may have
-  any number of attributes starting with the string "<dfn
-  title="attr-data-*"><code>data-</code></dfn>" specified, with any
-  value.</p>
+  <p>A <dfn>custom data attribute</dfn> is an attribute whose name
+  starts with the string "<dfn
+  title="attr-data-*"><code>data-</code></dfn>" and has at least one
+  character after the hyphen.</p>
 
-  <p>These are intended to store custom data private to the page or
+  <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
   elements.</p>
 
+  <p>Every <span title="HTML elements">HTML element</span> may have
+  any number of <span title="custom data attribute">custom data
+  attributes</span> specified, with any value.</p>
+
   <p>The <dfn title="dom-dataset"><code>dataset</code></dfn> DOM
   attribute provides convenient accessors for all the <code
   title="attr-data-*">data-*</code> attributes on an element.  On
@@ -5629,8 +5634,6 @@
   these attributes or values. Specifications intended for user agents
   must not define these attributes to have any meaningful values.</p>
 
-  <p class="big-issue">So here we're saying that microformats
-  shouldn't use this... is that what we want?</p>
 
 
   <h3><dfn>Interaction</dfn></h3>




More information about the Commit-Watchers mailing list