Clarify that undefined attributes aren't allowed. (whatwg r3183)

Clarify that undefined attributes aren't allowed. (whatwg r3183)

Diffs for this change per section: 
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2337.html#elements

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2336&r2=1.2337&f=h
http://html5.org/tools/web-apps-tracker?from=3182&to=3183

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2336
retrieving revision 1.2337
diff -u -d -r1.2336 -r1.2337
--- Overview.html 3 Jun 2009 09:16:10 -0000 1.2336
+++ Overview.html 3 Jun 2009 09:29:20 -0000 1.2337
@@ -7258,7 +7258,9 @@
   the <code title="attr-lang"><a href="#attr-lang">lang</a></code> attribute represents the
   language of the content.<p>Authors must not use elements, attributes, and attribute values
   for purposes other than their appropriate intended semantic
-  purpose.<div class="example">
+  purpose. Authors must not use elements, attributes, and attribute
+  values that are not permitted by this specification or other
+  applicable specifications.<div class="example">
    <p>For example, the following document is non-conforming, despite
    being syntactically correct:</p>
 
@@ -7317,6 +7319,16 @@
  &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
   attributes, text, and indeed the entire structure of the document
   may change dynamically while a user agent is processing it. The

Received on Wednesday, 3 June 2009 09:31:23 UTC