Skip to content

Commit

Permalink
[e] (0) Update data-*='' definition to make what we do with anolis mo…
Browse files Browse the repository at this point in the history
…re valid...

Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8671 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 11, 2014
1 parent 64037ad commit 5b86caa
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 6 deletions.
20 changes: 18 additions & 2 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -11156,8 +11156,10 @@ <h5 id=embedding-custom-non-visible-data-with-the-data-*-attributes><span class=
data private to the page or application, for which there are no more appropriate attributes or
elements.</p>

<p>These attributes are not intended for use by software that is independent of the site that uses
the attributes.</p>
<p>These attributes are not intended for use by software that is not known to the administrators
of the site that uses the attributes. For generic extensions that are to be used by multiple
independent tools, either this specification should be extended to provide the feature explicitly,
or a technology like <a href=#microdata>microdata</a> should be used (with a standardised vocabulary).</p>

<div class=example>

Expand All @@ -11179,6 +11181,20 @@ <h5 id=embedding-custom-non-visible-data-with-the-data-*-attributes><span class=

</div>

<div class=example>

<p>Similarly, a page author could write markup that provides information for a translation tool
that they are intending to use:</p>

<pre>&lt;p&gt;The third &lt;span data-mytrans-de="Anspruch"&gt;claim&lt;/span&gt; covers the case of &lt;span
data-mytrans-all="HTML"&gt;HTML&lt;/span&gt; markup.&lt;/p&gt;</pre>

<p>(In this example, the "<code title="">data-mytrans-de</code>" attribute gives specific text
for the MyTrans product to use when translating the phrase "claim" to German, and the "<code title="">data-mytrans-all</code>" attribute gives tells it that in all languages, "HTML" is to
remain unchanged.)</p>

</div>

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

<hr><dl class=domintro><dt><var title="">element</var> . <code title=dom-dataset><a href=#dom-dataset>dataset</a></code></dt>
Expand Down
20 changes: 18 additions & 2 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -11156,8 +11156,10 @@ background: transparent"&gt;blue&lt;/span&gt;.&lt;/p&gt;</pre>
data private to the page or application, for which there are no more appropriate attributes or
elements.</p>

<p>These attributes are not intended for use by software that is independent of the site that uses
the attributes.</p>
<p>These attributes are not intended for use by software that is not known to the administrators
of the site that uses the attributes. For generic extensions that are to be used by multiple
independent tools, either this specification should be extended to provide the feature explicitly,
or a technology like <a href=#microdata>microdata</a> should be used (with a standardised vocabulary).</p>

<div class=example>

Expand All @@ -11179,6 +11181,20 @@ background: transparent"&gt;blue&lt;/span&gt;.&lt;/p&gt;</pre>

</div>

<div class=example>

<p>Similarly, a page author could write markup that provides information for a translation tool
that they are intending to use:</p>

<pre>&lt;p&gt;The third &lt;span data-mytrans-de="Anspruch"&gt;claim&lt;/span&gt; covers the case of &lt;span
data-mytrans-all="HTML"&gt;HTML&lt;/span&gt; markup.&lt;/p&gt;</pre>

<p>(In this example, the "<code title="">data-mytrans-de</code>" attribute gives specific text
for the MyTrans product to use when translating the phrase "claim" to German, and the "<code title="">data-mytrans-all</code>" attribute gives tells it that in all languages, "HTML" is to
remain unchanged.)</p>

</div>

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

<hr><dl class=domintro><dt><var title="">element</var> . <code title=dom-dataset><a href=#dom-dataset>dataset</a></code></dt>
Expand Down
21 changes: 19 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -11141,8 +11141,10 @@ background: transparent">blue&lt;/span>.&lt;/p></pre>
data private to the page or application, for which there are no more appropriate attributes or
elements.</p>

<p>These attributes are not intended for use by software that is independent of the site that uses
the attributes.</p>
<p>These attributes are not intended for use by software that is not known to the administrators
of the site that uses the attributes. For generic extensions that are to be used by multiple
independent tools, either this specification should be extended to provide the feature explicitly,
or a technology like <span>microdata</span> should be used (with a standardised vocabulary).</p>

<div class="example">

Expand All @@ -11164,6 +11166,21 @@ background: transparent">blue&lt;/span>.&lt;/p></pre>

</div>

<div class="example">

<p>Similarly, a page author could write markup that provides information for a translation tool
that they are intending to use:</p>

<pre>&lt;p>The third &lt;span data-mytrans-de="Anspruch">claim&lt;/span> covers the case of &lt;span
data-mytrans-all="HTML">HTML&lt;/span> markup.&lt;/p></pre>

<p>(In this example, the "<code data-x="">data-mytrans-de</code>" attribute gives specific text
for the MyTrans product to use when translating the phrase "claim" to German, and the "<code
data-x="">data-mytrans-all</code>" attribute gives tells it that in all languages, "HTML" is to
remain unchanged.)</p>

</div>

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

Expand Down

0 comments on commit 5b86caa

Please sign in to comment.