Skip to content
Permalink
Browse files

[e] (0) Update data-*='' definition to make what we do with anolis mo…

…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 5b86caac8cdce9b1ab71dcb5db00f66e72343986
Showing with 55 additions and 6 deletions.
  1. +18 −2 complete.html
  2. +18 −2 index
  3. +19 −2 source
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>


</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>
20 index
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>


</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>
21 source
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">


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

0 comments on commit 5b86caa

Please sign in to comment.
You can’t perform that action at this time.