[html5] r6118 - [c] (0) Allow controls to be given a missing value explicitly (<input type=numbe [...]

whatwg at whatwg.org whatwg at whatwg.org
Sat May 7 12:07:21 PDT 2011


Author: ianh
Date: 2011-05-07 12:07:20 -0700 (Sat, 07 May 2011)
New Revision: 6118

Modified:
   complete.html
   index
   source
Log:
[c] (0) Allow controls to be given a missing value explicitly (<input type=number value=''> for instance)
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12256

Modified: complete.html
===================================================================
--- complete.html	2011-05-07 19:00:33 UTC (rev 6117)
+++ complete.html	2011-05-07 19:07:20 UTC (rev 6118)
@@ -43384,9 +43384,9 @@
   </div>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-url-potentially-surrounded-by-spaces>valid URL potentially
-  surrounded by spaces</a> that is also an <a href=#absolute-url>absolute
-  URL</a>.</p>
+  specified and not empty, must have a value that is a <a href=#valid-url-potentially-surrounded-by-spaces>valid URL
+  potentially surrounded by spaces</a> that is also an
+  <a href=#absolute-url>absolute URL</a>.</p>
 
   <div class=impl>
 
@@ -43536,8 +43536,8 @@
     </div>
 
     <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-    specified, must have a value that is a single <a href=#valid-e-mail-address>valid e-mail
-    address</a>.</p>
+    specified and not empty, must have a value that is a single
+    <a href=#valid-e-mail-address>valid e-mail address</a>.</p>
 
     <div class=impl>
 
@@ -43856,9 +43856,9 @@
   of the user's preferred locale.</p>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-global-date-and-time-string>valid global date and
-  time string</a>.</p> <!-- ok to set out-of-range value, we never
-  know when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-global-date-and-time-string>valid
+  global date and time string</a>.</p> <!-- ok to set out-of-range
+  value, we never know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44031,9 +44031,9 @@
   user's preferred locale.</p>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-date-string>valid date
-  string</a>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-date-string>valid
+  date string</a>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44184,9 +44184,9 @@
   user's preferred locale.</p>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-month-string>valid month
-  string</a>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-month-string>valid
+  month string</a>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44338,9 +44338,9 @@
   user's preferred locale.</p>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-week-string>valid week
-  string</a>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-week-string>valid
+  week string</a>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44497,9 +44497,9 @@
   user's preferred locale.</p>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-time-string>valid time
-  string</a>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-time-string>valid
+  time string</a>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44650,9 +44650,9 @@
   of the user's preferred locale.</p>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-local-date-and-time-string>valid local date and
-  time string</a>.</p> <!-- ok to set out-of-range value, we never
-  know when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-local-date-and-time-string>valid
+  local date and time string</a>.</p> <!-- ok to set out-of-range
+  value, we never know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44816,9 +44816,9 @@
   </div>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-floating-point-number>valid floating point
-  number</a>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-floating-point-number>valid
+  floating point number</a>.</p> <!-- ok to set out-of-range value,
+  we never know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44957,7 +44957,9 @@
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
   specified, must have a value that is a <a href=#valid-floating-point-number>valid floating point
   number</a>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  when we might have to represent bogus input; not ok to not have a
+  value if the attribute is present, since you can't not have a value
+  (attribute missing is treated as implying a default value) -->
 
   <div class=impl>
 
@@ -45180,8 +45182,8 @@
   </div>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-simple-color>valid simple
-  color</a>.</p>
+  specified and not empty, must have a value that is a <a href=#valid-simple-color>valid
+  simple color</a>.</p>
 
   <div class=impl>
 

Modified: index
===================================================================
--- index	2011-05-07 19:00:33 UTC (rev 6117)
+++ index	2011-05-07 19:07:20 UTC (rev 6118)
@@ -43412,9 +43412,9 @@
   </div>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-url-potentially-surrounded-by-spaces>valid URL potentially
-  surrounded by spaces</a> that is also an <a href=#absolute-url>absolute
-  URL</a>.</p>
+  specified and not empty, must have a value that is a <a href=#valid-url-potentially-surrounded-by-spaces>valid URL
+  potentially surrounded by spaces</a> that is also an
+  <a href=#absolute-url>absolute URL</a>.</p>
 
   <div class=impl>
 
@@ -43564,8 +43564,8 @@
     </div>
 
     <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-    specified, must have a value that is a single <a href=#valid-e-mail-address>valid e-mail
-    address</a>.</p>
+    specified and not empty, must have a value that is a single
+    <a href=#valid-e-mail-address>valid e-mail address</a>.</p>
 
     <div class=impl>
 
@@ -43884,9 +43884,9 @@
   of the user's preferred locale.</p>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-global-date-and-time-string>valid global date and
-  time string</a>.</p> <!-- ok to set out-of-range value, we never
-  know when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-global-date-and-time-string>valid
+  global date and time string</a>.</p> <!-- ok to set out-of-range
+  value, we never know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44059,9 +44059,9 @@
   user's preferred locale.</p>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-date-string>valid date
-  string</a>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-date-string>valid
+  date string</a>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44212,9 +44212,9 @@
   user's preferred locale.</p>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-month-string>valid month
-  string</a>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-month-string>valid
+  month string</a>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44366,9 +44366,9 @@
   user's preferred locale.</p>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-week-string>valid week
-  string</a>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-week-string>valid
+  week string</a>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44525,9 +44525,9 @@
   user's preferred locale.</p>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-time-string>valid time
-  string</a>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-time-string>valid
+  time string</a>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44678,9 +44678,9 @@
   of the user's preferred locale.</p>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-local-date-and-time-string>valid local date and
-  time string</a>.</p> <!-- ok to set out-of-range value, we never
-  know when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-local-date-and-time-string>valid
+  local date and time string</a>.</p> <!-- ok to set out-of-range
+  value, we never know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44844,9 +44844,9 @@
   </div>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-floating-point-number>valid floating point
-  number</a>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <a href=#valid-floating-point-number>valid
+  floating point number</a>.</p> <!-- ok to set out-of-range value,
+  we never know when we might have to represent bogus input -->
 
   <div class=impl>
 
@@ -44985,7 +44985,9 @@
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
   specified, must have a value that is a <a href=#valid-floating-point-number>valid floating point
   number</a>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  when we might have to represent bogus input; not ok to not have a
+  value if the attribute is present, since you can't not have a value
+  (attribute missing is treated as implying a default value) -->
 
   <div class=impl>
 
@@ -45208,8 +45210,8 @@
   </div>
 
   <p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if
-  specified, must have a value that is a <a href=#valid-simple-color>valid simple
-  color</a>.</p>
+  specified and not empty, must have a value that is a <a href=#valid-simple-color>valid
+  simple color</a>.</p>
 
   <div class=impl>
 

Modified: source
===================================================================
--- source	2011-05-07 19:00:33 UTC (rev 6117)
+++ source	2011-05-07 19:07:20 UTC (rev 6118)
@@ -48566,9 +48566,9 @@
   </div>
 
   <p>The <code title="attr-input-value">value</code> attribute, if
-  specified, must have a value that is a <span>valid URL potentially
-  surrounded by spaces</span> that is also an <span>absolute
-  URL</span>.</p>
+  specified and not empty, must have a value that is a <span>valid URL
+  potentially surrounded by spaces</span> that is also an
+  <span>absolute URL</span>.</p>
 
   <div class="impl">
 
@@ -48731,8 +48731,8 @@
     </div>
 
     <p>The <code title="attr-input-value">value</code> attribute, if
-    specified, must have a value that is a single <span>valid e-mail
-    address</span>.</p>
+    specified and not empty, must have a value that is a single
+    <span>valid e-mail address</span>.</p>
 
     <div class="impl">
 
@@ -49094,9 +49094,9 @@
   of the user's preferred locale.</p>
 
   <p>The <code title="attr-input-value">value</code> attribute, if
-  specified, must have a value that is a <span>valid global date and
-  time string</span>.</p> <!-- ok to set out-of-range value, we never
-  know when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <span>valid
+  global date and time string</span>.</p> <!-- ok to set out-of-range
+  value, we never know when we might have to represent bogus input -->
 
   <div class="impl">
 
@@ -49297,9 +49297,9 @@
   user's preferred locale.</p>
 
   <p>The <code title="attr-input-value">value</code> attribute, if
-  specified, must have a value that is a <span>valid date
-  string</span>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <span>valid
+  date string</span>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
 
   <div class="impl">
 
@@ -49471,9 +49471,9 @@
   user's preferred locale.</p>
 
   <p>The <code title="attr-input-value">value</code> attribute, if
-  specified, must have a value that is a <span>valid month
-  string</span>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <span>valid
+  month string</span>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
 
   <div class="impl">
 
@@ -49647,9 +49647,9 @@
   user's preferred locale.</p>
 
   <p>The <code title="attr-input-value">value</code> attribute, if
-  specified, must have a value that is a <span>valid week
-  string</span>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <span>valid
+  week string</span>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
 
   <div class="impl">
 
@@ -49829,9 +49829,9 @@
   user's preferred locale.</p>
 
   <p>The <code title="attr-input-value">value</code> attribute, if
-  specified, must have a value that is a <span>valid time
-  string</span>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <span>valid
+  time string</span>.</p> <!-- ok to set out-of-range value, we never
+  know when we might have to represent bogus input -->
 
   <div class="impl">
 
@@ -50001,9 +50001,9 @@
   of the user's preferred locale.</p>
 
   <p>The <code title="attr-input-value">value</code> attribute, if
-  specified, must have a value that is a <span>valid local date and
-  time string</span>.</p> <!-- ok to set out-of-range value, we never
-  know when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <span>valid
+  local date and time string</span>.</p> <!-- ok to set out-of-range
+  value, we never know when we might have to represent bogus input -->
 
   <div class="impl">
 
@@ -50183,9 +50183,9 @@
   </div>
 
   <p>The <code title="attr-input-value">value</code> attribute, if
-  specified, must have a value that is a <span>valid floating point
-  number</span>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  specified and not empty, must have a value that is a <span>valid
+  floating point number</span>.</p> <!-- ok to set out-of-range value,
+  we never know when we might have to represent bogus input -->
 
   <div class="impl">
 
@@ -50337,7 +50337,9 @@
   <p>The <code title="attr-input-value">value</code> attribute, if
   specified, must have a value that is a <span>valid floating point
   number</span>.</p> <!-- ok to set out-of-range value, we never know
-  when we might have to represent bogus input -->
+  when we might have to represent bogus input; not ok to not have a
+  value if the attribute is present, since you can't not have a value
+  (attribute missing is treated as implying a default value) -->
 
   <div class="impl">
 
@@ -50585,8 +50587,8 @@
   </div>
 
   <p>The <code title="attr-input-value">value</code> attribute, if
-  specified, must have a value that is a <span>valid simple
-  color</span>.</p>
+  specified and not empty, must have a value that is a <span>valid
+  simple color</span>.</p>
 
   <div class="impl">
 




More information about the Commit-Watchers mailing list