W3C home > Mailing lists > Public > public-html-diffs@w3.org > June 2009

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

From: poot <cvsmail@w3.org>
Date: Wed, 3 Jun 2009 18:30:50 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20090603093051.2BCDE2BC8D@toro.w3.mag.keio.ac.jp>
Clarify that undefined attributes aren't allowed. (whatwg r3183)

Diffs for this change per section: 


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 @@
+   <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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:08:57 UTC