[html5] r4462 - [a] (0) data-* attributes and JS libraries: some advice Fixing http://www.w3.org [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Jan 4 16:43:58 PST 2010


Author: ianh
Date: 2010-01-04 16:43:54 -0800 (Mon, 04 Jan 2010)
New Revision: 4462

Modified:
   complete.html
   index
   source
Log:
[a] (0) data-* attributes and JS libraries: some advice
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8208

Modified: complete.html
===================================================================
--- complete.html	2010-01-05 00:31:45 UTC (rev 4461)
+++ complete.html	2010-01-05 00:43:54 UTC (rev 4462)
@@ -8324,8 +8324,21 @@
 
   </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.</p>
 
+  <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>Each element in this specification has a definition that includes

Modified: index
===================================================================
--- index	2010-01-05 00:31:45 UTC (rev 4461)
+++ index	2010-01-05 00:43:54 UTC (rev 4462)
@@ -8159,8 +8159,21 @@
 
   </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.</p>
 
+  <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>Each element in this specification has a definition that includes

Modified: source
===================================================================
--- source	2010-01-05 00:31:45 UTC (rev 4461)
+++ source	2010-01-05 00:43:54 UTC (rev 4462)
@@ -8297,8 +8297,22 @@
 
   </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.</p>
 
+  <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>Element definitions</h4>
 
   <p>Each element in this specification has a definition that includes




More information about the Commit-Watchers mailing list