Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ac] (0) Make data-='' invalid.
git-svn-id: http://svn.whatwg.org/webapps@1709 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 27, 2008
1 parent be78bca commit c396488
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 20 deletions.
24 changes: 14 additions & 10 deletions index
Expand Up @@ -6776,9 +6776,10 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<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
Expand Down Expand Up @@ -7096,14 +7097,20 @@ background: transparent">blue&lt;/span>.&lt;/p></pre>
<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
Expand Down Expand Up @@ -7183,9 +7190,6 @@ background: transparent">blue&lt;/span>.&lt;/p></pre>
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>
<!--
Expand Down
23 changes: 13 additions & 10 deletions source
Expand Up @@ -5195,11 +5195,11 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<dd><code title="handler-onunload">onunload</code></dd>
</dl>

<p>Also, any attribute starting with the string "<code
title="attr-data-*">data-</code>" can be specified on any <span>HTML
<p>Also, <span title="custom data attribute">custom data
attributes</span> (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>


<p>In <span>HTML documents</span>, the <code>html</code> element,
and any other elements in the <span>HTML namespace</span> whose
parent element is not in the <span>HTML namespace</span>, may have
Expand Down Expand Up @@ -5523,15 +5523,20 @@ background: transparent">blue&lt;/span>.&lt;/p></pre>

<h4><dfn>Embedding custom non-visible data</dfn></h4>

<p>Every <span title="HTML elements">HTML element</span> may have
any number of attributes starting with the string "<dfn
title="attr-data-*"><code>data-</code></dfn>" specified, with any
value.</p>
<p>A <dfn>custom data attribute</dfn> is an attribute whose name
starts with the string "<dfn
title="attr-data-*"><code>data-</code></dfn>" and has at least one
character after the hyphen.</p>

<p>These are intended to store custom data private to the page or
<p><span title="custom data attribute">Custom data attributes</span>
are intended to store custom data private to the page or
application, for which there are no more appropriate attributes or
elements.</p>

<p>Every <span title="HTML elements">HTML element</span> may have
any number of <span title="custom data attribute">custom data
attributes</span> specified, with any value.</p>

<p>The <dfn title="dom-dataset"><code>dataset</code></dfn> DOM
attribute provides convenient accessors for all the <code
title="attr-data-*">data-*</code> attributes on an element. On
Expand Down Expand Up @@ -5629,8 +5634,6 @@ background: transparent">blue&lt;/span>.&lt;/p></pre>
these attributes or values. Specifications intended for user agents
must not define these attributes to have any meaningful values.</p>

<p class="big-issue">So here we're saying that microformats
shouldn't use this... is that what we want?</p>


<h3><dfn>Interaction</dfn></h3>
Expand Down

0 comments on commit c396488

Please sign in to comment.