html5/spec Overview.html,1.2336,1.2337

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv14864

Modified Files:
	Overview.html 
Log Message:
Clarify that undefined attributes aren't allowed. (whatwg r3183)

Index: Overview.html
===================================================================
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:29:31 UTC