W3C home > Mailing lists > Public > public-html-diffs@w3.org > October 2008

spec/Overview.html 1.1431 2258 WF2: input.value default for checkboxes;

From: poot <cvsmail@w3.org>
Date: Thu, 2 Oct 2008 12:37:50 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20081002033750.D85AE2BBF2@toro.w3.mag.keio.ac.jp>

WF2: input.value default for checkboxes; readonly for type=range; somes
notes; update the informative table of attribute applyingness. (whatwg
r2258)

button
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1431.html#attr-input-type-button-keyword
labels
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1431.html#dom-lfe-labels
4.10.4.3 Common input element APIs
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1431.html#common-input-element-apis
4.10.4 The input element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1431.html#the-input-element
4.10.4.1 States of the type attribute
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1431.html#states-of-the-type-attribute
default value
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1431.html#concept-input-value-default-range
4.10.4.1.1 Text state
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1431.html#text-state
checked
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1431.html#dom-input-checked

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1430&r2=1.1431&f=h
http://html5.org/tools/web-apps-tracker?from=2257&to=2258

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1430
retrieving revision 1.1431
diff -u -d -r1.1430 -r1.1431
--- Overview.html	2 Oct 2008 03:10:16 -0000	1.1430
+++ Overview.html	2 Oct 2008 03:34:13 -0000	1.1431
@@ -18509,7 +18509,13 @@
   control</a> is the element in question. The <dfn id=dom-lfe-labels title=dom-lfe-labels><code>labels</code></dfn> DOM attribute of
   <span title="labelable form-associated element">labelable
   form-associated elements</span>, on getting, must return that
-  <code>NodeList</code> object.<h4 id=the-input-element><span class=secno>4.10.4 </span>The <dfn><code>input</code></dfn> element</h4><dl class=element><dt>Categories</dt>
+  <code>NodeList</code> object.</p><!-- The label element's exact default presentation and behaviour
+  should match the platform's label behaviour. For example, on
+  platforms where clicking a checkbox label checks the checkbox,
+  clicking a label element should cause a click event to be
+  synthesised and fired at the checkbox. XXX should define activation
+  behaviour here; clicking on nested link? nested label? label when it
+  has a checkbox? etc --><h4 id=the-input-element><span class=secno>4.10.4 </span>The <dfn><code>input</code></dfn> element</h4><dl class=element><dt>Categories</dt>
    <dd><a href=#phrasing-content-0>Phrasing content</a>.</dd>
    <dd><a href=#interactive-content-0>Interactive content</a>.</dd>
    <dd><a href=#category-listed title=category-listed>Listed</a>, <a href=#category-label title=category-label>labelable</a>, <a href=#category-submit title=category-submit>submittable</a>, and <a href=#category-reset title=category-reset>resettable</a> <a href=#form-associated-element>form-associated element</a>.</dd>
@@ -18694,11 +18700,11 @@
      <th> <a href=#week-state title=attr-input-type-week>Week</a>
      <th> <a href=#time-state title=attr-input-type-time>Time</a>
      <th> <a href=#local-date-and-time-state title=attr-input-type-datetime-local>Local Date and Time</a>
-
      <th> <a href=#number-state title=attr-input-type-number>Number</a>
      <th> <a href=#range-state title=attr-input-type-range>Range</a>
      <th> <a href=#checkbox-state title=attr-input-type-checkbox>Checkbox</a>
      <th> <a href=#radio-button-state title=attr-input-type-radio>Radio Button</a>
+
      <th> <a href=#file-state title=attr-input-type-file>File</a>
      <th> <a href=#hidden-state title=attr-input-type-hidden>Hidden</a>
      <th> <a href=#submit-button-state title=attr-input-type-submit>Submit Button</a>
@@ -18783,8 +18789,8 @@
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
      <td class=yes> Yes <!-- Local Date and Time -->
-     <td class=no> &middot; <!-- Number -->
-     <td class=no> &middot; <!-- Range -->
+     <td class=yes> Yes <!-- Number -->
+     <td class=yes> Yes <!-- Range -->
      <td class=no> &middot; <!-- Checkbox -->
      <td class=no> &middot; <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
@@ -18807,8 +18813,8 @@
      <td class=no> &middot; <!-- Local Date and Time -->
      <td class=no> &middot; <!-- Number -->
      <td class=no> &middot; <!-- Range -->
-     <td class=no> &middot; <!-- Checkbox -->
-     <td class=no> &middot; <!-- Radio Button -->
+     <td class=yes> Yes <!-- Checkbox -->
+     <td class=yes> Yes <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
      <td class=no> &middot; <!-- Hidden -->
      <td class=no> &middot; <!-- Submit Button -->
@@ -18849,8 +18855,8 @@
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
      <td class=yes> Yes <!-- Local Date and Time -->
-     <td class=no> &middot; <!-- Number -->
-     <td class=no> &middot; <!-- Range -->
+     <td class=yes> Yes <!-- Number -->
+     <td class=yes> Yes <!-- Range -->
      <td class=no> &middot; <!-- Checkbox -->
      <td class=no> &middot; <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
@@ -18871,8 +18877,8 @@
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
      <td class=yes> Yes <!-- Local Date and Time -->
-     <td class=no> &middot; <!-- Number -->
-     <td class=no> &middot; <!-- Range -->
+     <td class=yes> Yes <!-- Number -->
+     <td class=yes> Yes <!-- Range -->
      <td class=no> &middot; <!-- Checkbox -->
      <td class=no> &middot; <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
@@ -18937,8 +18943,8 @@
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
      <td class=yes> Yes <!-- Local Date and Time -->
-     <td class=no> &middot; <!-- Number -->
-     <td class=no> &middot; <!-- Range -->
+     <td class=yes> Yes <!-- Number -->
+     <td class=yes> Yes <!-- Range -->
      <td class=no> &middot; <!-- Checkbox -->
      <td class=no> &middot; <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
@@ -18981,8 +18987,8 @@
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
      <td class=yes> Yes <!-- Local Date and Time -->
-     <td class=no> &middot; <!-- Number -->
-     <td class=no> &middot; <!-- Range -->
+     <td class=Yes> Yes <!-- Number -->
+     <td class=Yes> Yes <!-- Range -->
      <td class=no> &middot; <!-- Checkbox -->
      <td class=no> &middot; <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
@@ -19003,10 +19009,10 @@
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
      <td class=yes> Yes <!-- Local Date and Time -->
-     <td class=no> &middot; <!-- Number -->
-     <td class=no> &middot; <!-- Range -->
-     <td class=no> &middot; <!-- Checkbox -->
-     <td class=no> &middot; <!-- Radio Button -->
+     <td class=yes> Yes <!-- Number -->
+     <td class=yes> Yes <!-- Range -->
+     <td class=yes> Yes <!-- Checkbox -->
+     <td class=yes> Yes <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
      <td class=no> &middot; <!-- Hidden -->
      <td class=no> &middot; <!-- Submit Button -->
@@ -19069,8 +19075,8 @@
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
      <td class=yes> Yes <!-- Local Date and Time -->
-     <td class=no> &middot; <!-- Number -->
-     <td class=no> &middot; <!-- Range -->
+     <td class=yes> Yes <!-- Number -->
+     <td class=yes> Yes <!-- Range -->
      <td class=no> &middot; <!-- Checkbox -->
      <td class=no> &middot; <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
@@ -19102,7 +19108,7 @@
      <td class=no> &middot; <!-- Reset Button -->
      <td class=no> &middot; <!-- Button -->
 
-    <tr><th> <code title=dom-input-checked><a href=#dom-input-checked>checked</a></code>
+    <tr><!-- complete --><th> <code title=dom-input-checked><a href=#dom-input-checked>checked</a></code>
      <td class=no> &middot; <!-- Text -->
      <td class=no> &middot; <!-- E-mail -->
      <td class=no> &middot; <!-- URL -->
@@ -19115,8 +19121,8 @@
      <td class=no> &middot; <!-- Local Date and Time -->
      <td class=no> &middot; <!-- Number -->
      <td class=no> &middot; <!-- Range -->
-     <td class=no> &middot; <!-- Checkbox -->
-     <td class=no> &middot; <!-- Radio Button -->
+     <td class=yes> Yes <!-- Checkbox -->
+     <td class=yes> Yes <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
      <td class=no> &middot; <!-- Hidden -->
      <td class=no> &middot; <!-- Submit Button -->
@@ -19124,19 +19130,19 @@
      <td class=no> &middot; <!-- Reset Button -->
      <td class=no> &middot; <!-- Button -->
 
-    <tr><th> <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>
-     <td class=no> &middot; <!-- Text -->
-     <td class=no> &middot; <!-- E-mail -->
-     <td class=no> &middot; <!-- URL -->
-     <td class=no> &middot; <!-- Password -->
+    <tr><th> <code title=dom-input-value><a href=#dom-input-value>value</a></code>
+     <td class=yes> Yes <!-- Text -->
+     <td class=yes> Yes <!-- E-mail -->
+     <td class=yes> Yes <!-- URL -->
+     <td class=yes> Yes <!-- Password -->
      <td class=yes> Yes <!-- Date and Time -->
      <td class=yes> Yes <!-- Date -->
      <td class=yes> Yes <!-- Month -->
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
-     <td class=no> &middot; <!-- Local Date and Time -->
-     <td class=no> &middot; <!-- Number -->
-     <td class=no> &middot; <!-- Range -->
+     <td class=yes> Yes <!-- Local Date and Time -->
+     <td class=yes> Yes <!-- Number -->
+     <td class=yes> Yes <!-- Range -->
      <td class=no> &middot; <!-- Checkbox -->
      <td class=no> &middot; <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
@@ -19146,19 +19152,19 @@
      <td class=no> &middot; <!-- Reset Button -->
      <td class=no> &middot; <!-- Button -->
 
-    <tr><th> <code title=dom-input-value><a href=#dom-input-value>value</a></code>
-     <td class=yes> Yes <!-- Text -->
-     <td class=yes> Yes <!-- E-mail -->
-     <td class=yes> Yes <!-- URL -->
-     <td class=yes> Yes <!-- Password -->
+    <tr><!-- complete --><th> <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>
+     <td class=no> &middot; <!-- Text -->
+     <td class=no> &middot; <!-- E-mail -->
+     <td class=no> &middot; <!-- URL -->
+     <td class=no> &middot; <!-- Password -->
      <td class=yes> Yes <!-- Date and Time -->
      <td class=yes> Yes <!-- Date -->
      <td class=yes> Yes <!-- Month -->
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
-     <td class=yes> Yes <!-- Local Date and Time -->
-     <td class=yes> Yes <!-- Number -->
-     <td class=yes> Yes <!-- Range -->
+     <td class=no> &middot; <!-- Local Date and Time -->
+     <td class=no> &middot; <!-- Number -->
+     <td class=no> &middot; <!-- Range -->
      <td class=no> &middot; <!-- Checkbox -->
      <td class=no> &middot; <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
@@ -19179,8 +19185,8 @@
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
      <td class=yes> Yes <!-- Local Date and Time -->
-     <td class=no> &middot; <!-- Number -->
-     <td class=no> &middot; <!-- Range -->
+     <td class=yes> Yes <!-- Number -->
+     <td class=yes> Yes <!-- Range -->
      <td class=no> &middot; <!-- Checkbox -->
      <td class=no> &middot; <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
@@ -19201,8 +19207,8 @@
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
      <td class=yes> Yes <!-- Local Date and Time -->
-     <td class=no> &middot; <!-- Number -->
-     <td class=no> &middot; <!-- Range -->
+     <td class=yes> Yes <!-- Number -->
+     <td class=yes> Yes <!-- Range -->
      <td class=no> &middot; <!-- Checkbox -->
      <td class=no> &middot; <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
@@ -19223,8 +19229,8 @@
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
      <td class=yes> Yes <!-- Local Date and Time -->
-     <td class=no> &middot; <!-- Number -->
-     <td class=no> &middot; <!-- Range -->
+     <td class=yes> Yes <!-- Number -->
+     <td class=yes> Yes <!-- Range -->
      <td class=no> &middot; <!-- Checkbox -->
      <td class=no> &middot; <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
@@ -19245,8 +19251,8 @@
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
      <td class=yes> Yes <!-- Local Date and Time -->
-     <td class=no> &middot; <!-- Number -->
-     <td class=no> &middot; <!-- Range -->
+     <td class=yes> Yes <!-- Number -->
+     <td class=yes> Yes <!-- Range -->
      <td class=no> &middot; <!-- Checkbox -->
      <td class=no> &middot; <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
@@ -19267,8 +19273,8 @@
      <td class=yes> Yes <!-- Week -->
      <td class=yes> Yes <!-- Time -->
      <td class=yes> Yes <!-- Local Date and Time -->
-     <td class=no> &middot; <!-- Number -->
-     <td class=no> &middot; <!-- Range -->
+     <td class=yes> Yes <!-- Number -->
+     <td class=yes> Yes <!-- Range -->
      <td class=no> &middot; <!-- Checkbox -->
      <td class=no> &middot; <!-- Radio Button -->
      <td class=no> &middot; <!-- File -->
@@ -19360,7 +19366,8 @@
   methods, are part of the <a href=#the-constraint-validation-api>constraint validation API</a>.<h5 id=states-of-the-type-attribute><span class=secno>4.10.4.1 </span>States of the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute</h5><!-- XXX for things that say "express it as a valid foo", make sure
   that valid foo is unambiguous, and if not, define a canonical
   serialisation. e.g. should it be 2008-01-01T00:00 or
-  2008-01-01t00:00? should it be 1e2 or 100? --><h6 id=text-state><span class=secno>4.10.4.1.1 </span><dfn title=attr-input-type-text>Text</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#text-state title=attr-input-type-text>Text</a> state, the rules in this
+  2008-01-01t00:00? should it be 1e2 or 100? --><!-- XXX for each of these, need to say when to fire oninput,
+  onchange, and when required='' is satisfied --><h6 id=text-state><span class=secno>4.10.4.1.1 </span><dfn title=attr-input-type-text>Text</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#text-state title=attr-input-type-text>Text</a> state, the rules in this
   section apply.<p>The <code><a href=#the-input-element>input</a></code> element represents a one line plain text
   edit control for the element's <a href=#concept-fe-value title=concept-fe-value>value</a>.<p>If the element is <i title=concept-input-mutable><a href=#concept-input-mutable>mutable</a></i>,
   its <a href=#concept-fe-value title=concept-fe-value>value</a> should be editable
@@ -20085,7 +20092,6 @@
   <code title=attr-input-list>list</code>,
   <code title=attr-input-max><a href=#attr-input-max>max</a></code>,
   <code title=attr-input-min><a href=#attr-input-min>min</a></code>,
-  <code title=attr-input-readonly><a href=#attr-input-readonly>readonly</a></code>,
   <code title=attr-input-required>required</code>, and
   <code title=attr-input-step><a href=#attr-input-step>step</a></code> content attributes;
   <code title=dom-input-list><a href=#dom-input-list>list</a></code>,
@@ -20103,6 +20109,7 @@
   <code class=no-backref title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code>,
   <code class=no-backref title=attr-fs-method><a href=#attr-fs-method>method</a></code>,
   <code class=no-backref title=attr-input-pattern>pattern</code>,
+  <code class=no-backref title=attr-input-readonly><a href=#attr-input-readonly>readonly</a></code>,
   <code class=no-backref title=attr-input-size>size</code>,
   <code class=no-backref title=attr-input-src>src</code>, and
   <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>.<p>The following DOM attributes do not apply to the element:
@@ -20338,9 +20345,12 @@
   element's <a href=#concept-input-value-dirty-flag title=concept-input-value-dirty-flag>dirty value
   flag</a> to true, and then invoke the <a href=#value-sanitization-algorithm>value sanitization
   algorithm</a> defined for the element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state. If
-  the attribute does not apply, then it must <a href=#reflect>reflect</a> the
-  element's <code title=attr-input-value><a href=#attr-input-value>value</a></code> content
-  attribute.<p>The <dfn id=dom-input-checked title=dom-input-checked><code>checked</code></dfn> DOM
+  the attribute does not apply, then on getting, if the element has a
+  <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, it must
+  return that attribute's value; otherwise, it must return the string
+  "<code title="">on</code>"; and on setting, it must set the
+  element's <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute to
+  the new value.<p>The <dfn id=dom-input-checked title=dom-input-checked><code>checked</code></dfn> DOM
   attribute allows scripts to manipulate the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> of an
   <code><a href=#the-input-element>input</a></code> element. On getting, it must return the current
   <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> of the element;
Received on Thursday, 2 October 2008 03:38:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:13:56 GMT