[html5] r3183 - [e] (0) Clarify that undefined attributes aren't allowed.

whatwg at whatwg.org whatwg at whatwg.org
Wed Jun 3 02:29:16 PDT 2009


Author: ianh
Date: 2009-06-03 02:29:15 -0700 (Wed, 03 Jun 2009)
New Revision: 3183

Modified:
   index
   source
Log:
[e] (0) Clarify that undefined attributes aren't allowed.

Modified: index
===================================================================
--- index	2009-06-03 09:16:05 UTC (rev 3182)
+++ index	2009-06-03 09:29:15 UTC (rev 3183)
@@ -7994,7 +7994,9 @@
 
   <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
@@ -8055,6 +8057,16 @@
  </hgroup>
  ...</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><label>Carpet: <input type="carpet" name="c" texture="deep pile"></label></pre>
+
+   <p>Here would be an alternative and correct way to mark this up:</p>
+
+   <pre><label>Carpet: <input type="text" class="carpet" name="c" data-texture="deep pile"></label></pre>
+
   </div>
 
   <p>Through scripting and using other mechanisms, the values of

Modified: source
===================================================================
--- source	2009-06-03 09:16:05 UTC (rev 3182)
+++ source	2009-06-03 09:29:15 UTC (rev 3183)
@@ -8207,7 +8207,9 @@
 
   <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
@@ -8268,6 +8270,16 @@
  </hgroup>
  ...</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"><label>Carpet: <input type="carpet" name="c" texture="deep pile"></label></pre>
+
+   <p>Here would be an alternative and correct way to mark this up:</p>
+
+   <pre><label>Carpet: <input type="text" class="carpet" name="c" data-texture="deep pile"></label></pre>
+
   </div>
 
   <p>Through scripting and using other mechanisms, the values of




More information about the Commit-Watchers mailing list