diff --git a/complete.html b/complete.html index d8b99d46e87..bbe6bdae227 100644 --- a/complete.html +++ b/complete.html @@ -49795,6 +49795,7 @@
+
4.10.7.4 Common input
element APIs
- input .
value
[ = value ]
@@ -49856,7 +49857,8 @@ 4.10.7.4 Common
Returns a number representing the form control's value, if applicable; otherwise,
returns NaN.
- Can be set, to change the value.
+ Can be set, to change the value. Setting this to NaN will set the underlying value to the
+ empty string.
Throws an InvalidStateError
exception if the
control is neither date- or time-based nor numeric.
@@ -49888,6 +49890,7 @@ 4.10.7.4 Common
+
The value
IDL
attribute allows scripts to manipulate the value of an input
@@ -49984,7 +49987,7 @@
4.10.7.4 Common
time value, then set the value
of the element to the empty string; otherwise, run the algorithm to convert a
Date
object to a string, as defined for that
- state, on the new value, and set the value of the element to resulting
+ state, on the new value, and set the value of the element to the resulting
string.
The valueAsNumber
IDL
@@ -50005,18 +50008,19 @@
4.10.7.4 Common
returned a number, then return it, otherwise, return a Not-a-Number
(NaN) value.
- On setting, if the valueAsNumber
attribute does
+
On setting, if the new value is infinite, then throw a TypeError
exception. Otherwise, if the valueAsNumber
attribute does
not apply, as defined for the input
element's type
attribute's current state, then
- throw an InvalidStateError
exception. Otherwise, if
+ throw an InvalidStateError
exception. Otherwise, if the new value is a Not-a-Number (NaN) value,
+ then set the value of the element to the empty string. Otherwise, if
the valueAsDate
attribute applies, run the algorithm to convert a
Date
object to a string defined for that state,
passing it a Date
object whose time value is the
new value, and set the value
- of the element to resulting string. Otherwise, run the algorithm to convert a
+ of the element to the resulting string. Otherwise, run the algorithm to convert a
number to a string, as defined for that state, on the new
value, and set the value of
- the element to resulting string.
+ the element to the resulting string.
The stepDown(n)
and stepUp(n)
methods, when invoked, must run the
following algorithm:
diff --git a/index b/index
index d8b99d46e87..bbe6bdae227 100644
--- a/index
+++ b/index
@@ -49795,6 +49795,7 @@ You cannot submit this form when the field is incorrect.
+
4.10.7.4 Common input
element APIs
- input .
value
[ = value ]
@@ -49856,7 +49857,8 @@ You cannot submit this form when the field is incorrect.
Returns a number representing the form control's value, if applicable; otherwise,
returns NaN.
- Can be set, to change the value.
+ Can be set, to change the value. Setting this to NaN will set the underlying value to the
+ empty string.
Throws an InvalidStateError
exception if the
control is neither date- or time-based nor numeric.
@@ -49888,6 +49890,7 @@ You cannot submit this form when the field is incorrect.
+
The value
IDL
attribute allows scripts to manipulate the value of an input
@@ -49984,7 +49987,7 @@ You cannot submit this form when the field is incorrect.
time value, then set the value
of the element to the empty string; otherwise, run the algorithm to convert a
Date
object to a string, as defined for that
- state, on the new value, and set the value of the element to resulting
+ state, on the new value, and set the value of the element to the resulting
string.
The valueAsNumber
IDL
@@ -50005,18 +50008,19 @@ You cannot submit this form when the field is incorrect.
returned a number, then return it, otherwise, return a Not-a-Number
(NaN) value.
- On setting, if the valueAsNumber
attribute does
+
On setting, if the new value is infinite, then throw a TypeError
exception. Otherwise, if the valueAsNumber
attribute does
not apply, as defined for the input
element's type
attribute's current state, then
- throw an InvalidStateError
exception. Otherwise, if
+ throw an InvalidStateError
exception. Otherwise, if the new value is a Not-a-Number (NaN) value,
+ then set the value of the element to the empty string. Otherwise, if
the valueAsDate
attribute applies, run the algorithm to convert a
Date
object to a string defined for that state,
passing it a Date
object whose time value is the
new value, and set the value
- of the element to resulting string. Otherwise, run the algorithm to convert a
+ of the element to the resulting string. Otherwise, run the algorithm to convert a
number to a string, as defined for that state, on the new
value, and set the value of
- the element to resulting string.
+ the element to the resulting string.
The stepDown(n)
and stepUp(n)
methods, when invoked, must run the
following algorithm:
diff --git a/source b/source
index ac6e78da273..99d28f8f269 100644
--- a/source
+++ b/source
@@ -57974,6 +57974,7 @@ You cannot submit this form when the field is incorrect.
+
Common input
element APIs
@@ -58041,7 +58042,8 @@ You cannot submit this form when the field is incorrect.
title="concept-fe-value">value, if applicable; otherwise,
returns NaN.
- Can be set, to change the value.
+ Can be set, to change the value. Setting this to NaN will set the underlying value to the
+ empty string.
Throws an InvalidStateError
exception if the
control is neither date- or time-based nor numeric.
@@ -58077,6 +58079,7 @@ You cannot submit this form when the field is incorrect.
+
The value
IDL
attribute allows scripts to manipulate the
title="concept-input-value-date-string">algorithm to convert a
Date
object to a string, as defined for that
state, on the new value, and set the value of the element to resulting
+ title="concept-fe-value">value of the element to the resulting
string.
@@ -58237,11 +58240,12 @@ You cannot submit this form when the field is incorrect.
returned a number, then return it, otherwise, return a Not-a-Number
(NaN) value.
- On setting, if the On setting, if the new value is infinite, then throw a TypeError
exception. Otherwise, if the valueAsNumber
attribute does
not apply, as defined for the input
element's type
attribute's current state, then
- throw an InvalidStateError
exception. Otherwise, if
+ throw an InvalidStateError
exception. Otherwise, if the new value is a Not-a-Number (NaN) value,
+ then set the value of the element to the empty string. Otherwise, if
the valueAsDate
attribute applies, run the
Date
object to a string defined for that state,
passing it a Date
object whose time value is the
new value, and set the value
- of the element to resulting string. Otherwise, run the algorithm to convert a
number to a string, as defined for that state, on the new
value, and set the value of
- the element to resulting string.
+ the element to the resulting string.