[html5] r5345 - [e] (0) examples for boolean attributes
whatwg at whatwg.org
whatwg at whatwg.org
Tue Aug 24 17:13:43 PDT 2010
Author: ianh
Date: 2010-08-24 17:13:42 -0700 (Tue, 24 Aug 2010)
New Revision: 5345
Modified:
complete.html
index
source
Log:
[e] (0) examples for boolean attributes
Modified: complete.html
===================================================================
--- complete.html 2010-08-24 23:58:28 UTC (rev 5344)
+++ complete.html 2010-08-25 00:13:42 UTC (rev 5345)
@@ -209,7 +209,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>Web Applications 1.0</h1>
- <h2 class="no-num no-toc">Draft Standard — 24 August 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard — 25 August 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -3646,8 +3646,26 @@
boolean attributes. To represent a false value, the attribute has to
be omitted altogether.</p>
+ <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><label><input type=checkbox checked name=cheese disabled> Cheese</label></pre>
+
+ <p>This could be equivalently written as this:
+
+ <pre><label><input type=checkbox checked=checked name=cheese disabled=disabled> Cheese</label></pre>
+
+ <p>You can also mix styles; the following is still equivalent:</p>
+
+ <pre><label><input type='checkbox' checked name=cheese disabled=""> Cheese</label></pre>
+
+ </div>
+
+
+
<h4 id=keywords-and-enumerated-attributes><span class=secno>2.4.3 </span>Keywords and enumerated attributes</h4>
<p>Some attributes are defined as taking one of a finite set of
@@ -15201,7 +15219,7 @@
<em>...more content...</em>
</div>
<footer>
- <p>Posted <time pubdate datetime="2009-10-10T14:36-08:00">Thursday</time>.</p>
+ <p>Posted <time pubdate="" datetime="2009-10-10T14:36-08:00">Thursday</time>.</p>
</footer>
</article>
<em>...more blog posts...</em>
Modified: index
===================================================================
--- index 2010-08-24 23:58:28 UTC (rev 5344)
+++ index 2010-08-25 00:13:42 UTC (rev 5345)
@@ -213,7 +213,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>HTML5 (including next generation additions still in development)</h1>
- <h2 class="no-num no-toc">Draft Standard — 24 August 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard — 25 August 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -3568,8 +3568,26 @@
boolean attributes. To represent a false value, the attribute has to
be omitted altogether.</p>
+ <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><label><input type=checkbox checked name=cheese disabled> Cheese</label></pre>
+
+ <p>This could be equivalently written as this:
+
+ <pre><label><input type=checkbox checked=checked name=cheese disabled=disabled> Cheese</label></pre>
+
+ <p>You can also mix styles; the following is still equivalent:</p>
+
+ <pre><label><input type='checkbox' checked name=cheese disabled=""> Cheese</label></pre>
+
+ </div>
+
+
+
<h4 id=keywords-and-enumerated-attributes><span class=secno>2.4.3 </span>Keywords and enumerated attributes</h4>
<p>Some attributes are defined as taking one of a finite set of
@@ -15123,7 +15141,7 @@
<em>...more content...</em>
</div>
<footer>
- <p>Posted <time pubdate datetime="2009-10-10T14:36-08:00">Thursday</time>.</p>
+ <p>Posted <time pubdate="" datetime="2009-10-10T14:36-08:00">Thursday</time>.</p>
</footer>
</article>
<em>...more blog posts...</em>
Modified: source
===================================================================
--- source 2010-08-24 23:58:28 UTC (rev 5344)
+++ source 2010-08-25 00:13:42 UTC (rev 5345)
@@ -2598,8 +2598,27 @@
boolean attributes. To represent a false value, the attribute has to
be omitted altogether.</p>
+ <div class="example">
+ <p>Here is an example of a checkbox that is checked and disabled.
+ The <code title="attr-input-checked">checked</code> and <code
+ title="attr-input-readonly">readonly</code> attributes are the
+ boolean attributes.</p>
+ <pre><label><input type=checkbox checked name=cheese disabled> Cheese</label></pre>
+
+ <p>This could be equivalently written as this:
+
+ <pre><label><input type=checkbox checked=checked name=cheese disabled=disabled> Cheese</label></pre>
+
+ <p>You can also mix styles; the following is still equivalent:</p>
+
+ <pre><label><input type='checkbox' checked name=cheese disabled=""> Cheese</label></pre>
+
+ </div>
+
+
+
<h4>Keywords and enumerated attributes</h4>
<p>Some attributes are defined as taking one of a finite set of
@@ -16066,7 +16085,7 @@
<em>...more content...</em>
</div>
<footer>
- <p>Posted <time pubdate datetime="2009-10-10T14:36-08:00">Thursday</time>.</p>
+ <p>Posted <time pubdate="" datetime="2009-10-10T14:36-08:00">Thursday</time>.</p>
</footer>
</article>
<em>...more blog posts...</em>
More information about the Commit-Watchers
mailing list