Skip to content

Commit

Permalink
[e] (0) Clarify that undefined attributes aren't allowed.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@3183 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 3, 2009
1 parent 375c9b9 commit 86c8374
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
14 changes: 13 additions & 1 deletion index
Expand Up @@ -7994,7 +7994,9 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {

<p>Authors must not use elements, attributes, and attribute values
for purposes other than their appropriate intended semantic
purpose.</p>
purpose. Authors must not use elements, attributes, and attribute
values that are not permitted by this specification or other
applicable specifications.</p>

<div class=example>
<p>For example, the following document is non-conforming, despite
Expand Down Expand Up @@ -8055,6 +8057,16 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {
&lt;/hgroup&gt;
...</pre>

<p>In the next example, there is a non-conforming attribute value
("carpet") and a non-conforming attribute ("texture"), which
is not permitted by this specification:</p>

<pre class=bad>&lt;label&gt;Carpet: &lt;input type="carpet" name="c" texture="deep pile"&gt;&lt;/label&gt;</pre>

<p>Here would be an alternative and correct way to mark this up:</p>

<pre>&lt;label&gt;Carpet: &lt;input type="text" class="carpet" name="c" data-texture="deep pile"&gt;&lt;/label&gt;</pre>

</div>

<p>Through scripting and using other mechanisms, the values of
Expand Down
14 changes: 13 additions & 1 deletion source
Expand Up @@ -8207,7 +8207,9 @@ interface <dfn>HTMLDocument</dfn> {

<p>Authors must not use elements, attributes, and attribute values
for purposes other than their appropriate intended semantic
purpose.</p>
purpose. Authors must not use elements, attributes, and attribute
values that are not permitted by this specification or other
applicable specifications.</p>

<div class="example">
<p>For example, the following document is non-conforming, despite
Expand Down Expand Up @@ -8268,6 +8270,16 @@ interface <dfn>HTMLDocument</dfn> {
&lt;/hgroup&gt;
...</pre>

<p>In the next example, there is a non-conforming attribute value
("carpet") and a non-conforming attribute ("texture"), which
is not permitted by this specification:</p>

<pre class="bad">&lt;label&gt;Carpet: &lt;input type="carpet" name="c" texture="deep pile"&gt;&lt;/label&gt;</pre>

<p>Here would be an alternative and correct way to mark this up:</p>

<pre>&lt;label&gt;Carpet: &lt;input type="text" class="carpet" name="c" data-texture="deep pile"&gt;&lt;/label&gt;</pre>

</div>

<p>Through scripting and using other mechanisms, the values of
Expand Down

0 comments on commit 86c8374

Please sign in to comment.