html5/spec Overview.html,1.3561,1.3562

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

Modified Files:
	Overview.html 
Log Message:
data-* attributes and JS libraries: some advice (whatwg r4462)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3561
retrieving revision 1.3562
diff -u -d -r1.3561 -r1.3562
--- Overview.html	5 Jan 2010 00:31:55 -0000	1.3561
+++ Overview.html	5 Jan 2010 00:44:03 -0000	1.3562
@@ -7343,6 +7343,16 @@
   these attributes or values. Specifications intended for user agents
   must not define these attributes to have any meaningful values.</p>
 
+  </div><p>JavaScript libraries may use the <span>custom data
+  attributes</span>, as they are considered to be part of the page on
+  which they are used. Authors of libraries that are reused by many
+  authors are encouraged to include their name in the attribute names,
+  to reduce the risk of clashes.<div class="example">
+
+   <p>For example, a library called "DoQuery" could use attribute
+   names like <code title="">data-doquery-range</code>, and a library
+   called "jJo" could use attributes names like <code title="">data-jjo-range</code>.</p>
+
   </div><h4 id="element-definitions"><span class="secno">3.2.4 </span>Element definitions</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>Each element in this specification has a definition that includes
   the following information:<dl><dt>Categories</dt>
 

Received on Tuesday, 5 January 2010 00:44:09 UTC