Skip to content

Commit

Permalink
[a] (0) data-* attributes and JS libraries: some advice
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8208

git-svn-id: http://svn.whatwg.org/webapps@4462 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 5, 2010
1 parent b390535 commit 2b0dcce
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
13 changes: 13 additions & 0 deletions complete.html
Expand Up @@ -8324,6 +8324,19 @@ <h5 id=embedding-custom-non-visible-data><span class=secno>3.2.3.8 </span><dfn>E

</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>
Expand Down
13 changes: 13 additions & 0 deletions index
Expand Up @@ -8159,6 +8159,19 @@ background: transparent"&gt;blue&lt;/span&gt;.&lt;/p&gt;</pre>

</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>
Expand Down
14 changes: 14 additions & 0 deletions source
Expand Up @@ -8297,6 +8297,20 @@ background: transparent">blue&lt;/span>.&lt;/p></pre>

</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>
Expand Down

0 comments on commit 2b0dcce

Please sign in to comment.