W3C home > Mailing lists > Public > public-html-commits@w3.org > May 2008

html5/spec Overview.html,1.895,1.896

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 27 May 2008 09:51:27 +0000
To: public-html-commits@w3.org
Message-Id: <E1K0vq3-0005fE-EA@lionel-hutz.w3.org>

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv21744

Modified Files:
	Overview.html 
Log Message:
Make data-='' invalid. (whatwg r1709)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.895
retrieving revision 1.896
diff -u -d -r1.895 -r1.896
--- Overview.html	27 May 2008 07:25:25 -0000	1.895
+++ Overview.html	27 May 2008 09:51:24 -0000	1.896
@@ -6860,9 +6860,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
@@ -7180,14 +7181,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
@@ -7267,9 +7274,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>
   <!--
Received on Tuesday, 27 May 2008 09:52:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 9 October 2008 20:32:56 GMT