hixie: examples for boolean attributes (whatwg r5345)

hixie: examples for boolean attributes (whatwg r5345)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4261&r2=1.4262&f=h
http://html5.org/tools/web-apps-tracker?from=5344&to=5345

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4261
retrieving revision 1.4262
diff -u -d -r1.4261 -r1.4262
--- Overview.html 24 Aug 2010 23:46:00 -0000 1.4261
+++ Overview.html 25 Aug 2010 00:13:47 -0000 1.4262
@@ -311,7 +311,7 @@
 
    <h1>HTML5</h1>
    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-   <h2 class="no-num no-toc" id="editor-s-draft-24-august-2010">Editor's Draft 24 August 2010</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-25-august-2010">Editor's Draft 25 August 2010</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -417,7 +417,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 24 August 2010 Editor's Draft.
+  This specification is the 25 August 2010 Editor's Draft.
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group
   actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working
   group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- required patent boilerplate --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
@@ -3066,7 +3066,23 @@
   match for the attribute's canonical name, with no leading or
   trailing whitespace.<p class="note">The values "true" and "false" are not allowed on
   boolean attributes. To represent a false value, the attribute has to
-  be omitted altogether.<h4 id="keywords-and-enumerated-attributes"><span class="secno">2.4.3 </span>Keywords and enumerated attributes</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>Some attributes are defined as taking one of a finite set of
+  be omitted altogether.<div class="example">
+
+   <p>Here is an example of a checkbox that is checked and disabled.
+   The <code title="attr-input-checked"><a href="#attr-input-checked">checked</a></code> and <code title="attr-input-readonly"><a href="#attr-input-readonly">readonly</a></code> attributes are the
+   boolean attributes.</p>
+
+   <pre>&lt;label&gt;&lt;input type=checkbox checked name=cheese disabled&gt; Cheese&lt;/label&gt;</pre>
+
+   <p>This could be equivalently written as this:
+
+   <pre>&lt;label&gt;&lt;input type=checkbox checked=checked name=cheese disabled=disabled&gt; Cheese&lt;/label&gt;</pre>
+
+   <p>You can also mix styles; the following is still equivalent:</p>
+
+   <pre>&lt;label&gt;&lt;input type='checkbox' checked name=cheese disabled=""&gt; Cheese&lt;/label&gt;</pre>
+
+  </div><h4 id="keywords-and-enumerated-attributes"><span class="secno">2.4.3 </span>Keywords and enumerated attributes</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>Some attributes are defined as taking one of a finite set of
   keywords. Such attributes are called <dfn id="enumerated-attribute" title="enumerated
   attribute">enumerated attributes</dfn>. The keywords are each
   defined to map to a particular <em>state</em> (several keywords
@@ -13144,7 +13160,7 @@
     <em>...more content...</em>
    &lt;/div&gt;
    &lt;footer&gt;
-    &lt;p&gt;Posted &lt;time pubdate datetime="2009-10-10T14:36-08:00"&gt;Thursday&lt;/time&gt;.&lt;/p&gt;
+    &lt;p&gt;Posted &lt;time pubdate="" datetime="2009-10-10T14:36-08:00"&gt;Thursday&lt;/time&gt;.&lt;/p&gt;
    &lt;/footer&gt;
   &lt;/article&gt;
   <em>...more blog posts...</em>

Received on Wednesday, 25 August 2010 00:14:35 UTC