hixie: data-* attributes and JS libraries: some advice (whatwg r4462)

hixie: data-* attributes and JS libraries: some advice (whatwg r4462)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3561&r2=1.3562&f=h
http://html5.org/tools/web-apps-tracker?from=4461&to=4462

===================================================================
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:44 UTC