[html5] r2255 - [] (0) WF2: <input type=range>
whatwg at whatwg.org
whatwg at whatwg.org
Tue Sep 30 19:38:13 PDT 2008
Author: ianh
Date: 2008-09-30 19:38:10 -0700 (Tue, 30 Sep 2008)
New Revision: 2255
Modified:
index
source
Log:
[] (0) WF2: <input type=range>
Modified: index
===================================================================
--- index 2008-10-01 00:24:43 UTC (rev 2254)
+++ index 2008-10-01 02:38:10 UTC (rev 2255)
@@ -29,8 +29,8 @@
<h1 id=html-5>HTML 5</h1>
- <h2 class="no-num no-toc" id=draft>Draft Recommendation — 30
- September 2008</h2>
+ <h2 class="no-num no-toc" id=draft>Draft Recommendation — 1 October
+ 2008</h2>
<p>You can take part in this work. <a
href="http://www.whatwg.org/mailing-list">Join the working group's
@@ -30159,7 +30159,7 @@
attribute is expressed in seconds. The <a href="#step-"
title=concept-input-step-scale>step scale factor</a> is 1000 (which
converts the seconds to milliseconds, as used in the other algorithms).
- The <a href="#default2" title=concept-input-step-default>default step</a>
+ The <a href="#default5" title=concept-input-step-default>default step</a>
is 60 seconds.
<p>When the element is <a href="#suffering3">suffering from a step
@@ -30289,7 +30289,7 @@
attribute is expressed in days. The <a href="#step-"
title=concept-input-step-scale>step scale factor</a> is 86,400,000 (which
converts the days to milliseconds, as used in the other algorithms). The
- <a href="#default2" title=concept-input-step-default>default step</a> is 1
+ <a href="#default5" title=concept-input-step-default>default step</a> is 1
day.
<p>When the element is <a href="#suffering3">suffering from a step
@@ -30417,7 +30417,7 @@
<p>The <code title=attr-input-step><a href="#step0">step</a></code>
attribute is expressed in months. The <a href="#step-"
title=concept-input-step-scale>step scale factor</a> is 1 (there is no
- conversion needed as the algorithms use months). The <a href="#default2"
+ conversion needed as the algorithms use months). The <a href="#default5"
title=concept-input-step-default>default step</a> is 1 month.
<p>When the element is <a href="#suffering3">suffering from a step
@@ -30545,7 +30545,7 @@
attribute is expressed in weeks. The <a href="#step-"
title=concept-input-step-scale>step scale factor</a> is 604,800,000 (which
converts the weeks to milliseconds, as used in the other algorithms). The
- <a href="#default2" title=concept-input-step-default>default step</a> is 1
+ <a href="#default5" title=concept-input-step-default>default step</a> is 1
week.
<p>When the element is <a href="#suffering3">suffering from a step
@@ -30674,7 +30674,7 @@
attribute is expressed in seconds. The <a href="#step-"
title=concept-input-step-scale>step scale factor</a> is 1000 (which
converts the seconds to milliseconds, as used in the other algorithms).
- The <a href="#default2" title=concept-input-step-default>default step</a>
+ The <a href="#default5" title=concept-input-step-default>default step</a>
is 60 seconds.
<p>When the element is <a href="#suffering3">suffering from a step
@@ -30802,7 +30802,7 @@
attribute is expressed in seconds. The <a href="#step-"
title=concept-input-step-scale>step scale factor</a> is 1000 (which
converts the seconds to milliseconds, as used in the other algorithms).
- The <a href="#default2" title=concept-input-step-default>default step</a>
+ The <a href="#default5" title=concept-input-step-default>default step</a>
is 60 seconds.
<p>When the element is <a href="#suffering3">suffering from a step
@@ -30910,7 +30910,7 @@
that is a <a href="#valid1">valid floating point number</a>.
<p>The <a href="#step-" title=concept-input-step-scale>step scale
- factor</a> is 1. The <a href="#default2"
+ factor</a> is 1. The <a href="#default5"
title=concept-input-step-default>default step</a> is 1 (allowing only
integers, unless the <code title=attr-input-min><a
href="#min2">min</a></code> attribute has a non-integer value).
@@ -30981,9 +30981,142 @@
the <a href="#range1" title=attr-input-type-range>Range</a> state, the
rules in this section apply.
- <p class=big-issue>...</p>
- <!-- XXX default min/max, calling valueAsNumber with out-of-range values -->
+ <p>The <code><a href="#input0">input</a></code> element represents a
+ control for setting the element's <a href="#value12"
+ title=concept-fe-value>value</a> to a string representing a number, but
+ with the caveat that the exact value is not important, letting UAs provide
+ a simpler interface than they do for the <a href="#number2"
+ title=attr-input-type-number>Number</a> state.
+ <p class=note>In this state, the range and step constraints are enforced
+ even during user input, and there is no way to set the value to the empty
+ string.
+
+ <p>If the element is <i title=concept-input-mutable><a
+ href="#mutable">mutable</a></i>, the user should allow the user to change
+ the number represented by its <a href="#value12"
+ title=concept-fe-value>value</a>, as obtained from applying the <a
+ href="#rules1">rules for parsing floating point number values</a> to it.
+ User agents must not allow the user to set the <a href="#value12"
+ title=concept-fe-value>value</a> to a string that is not a <a
+ href="#valid1">valid floating point number</a>. If the user agent provides
+ a user interface for selecting a number, then the <a href="#value12"
+ title=concept-fe-value>value</a> must be set to a <a href="#valid1">valid
+ floating point number</a> representing the user's selection. User agents
+ must not allow the user to set the <a href="#value12"
+ title=concept-fe-value>value</a> to the empty string.
+
+ <p><strong>The <a href="#value8">value sanitization algorithm</a> is as
+ follows:</strong> If the <a href="#value12"
+ title=concept-fe-value>value</a> of the element is not a <a
+ href="#valid1">valid floating point number</a>, then set it to a <a
+ href="#valid1">valid floating point number</a> that represents the <a
+ href="#default2" title=concept-input-value-default-range>default
+ value</a>.
+
+ <p>The <code title=attr-input-min><a href="#min2">min</a></code> attribute,
+ if specified, must have a value that is a <a href="#valid1">valid floating
+ point number</a>. The <a href="#default3"
+ title=concept-input-min-default>default minimum</a> is 0. The <code
+ title=attr-input-max><a href="#max4">max</a></code> attribute, if
+ specified, must have a value that is a <a href="#valid1">valid floating
+ point number</a>. The <a href="#default3"
+ title=concept-input-min-default>default minimum</a> is 100.
+
+ <p>The <dfn id=default2 title=concept-input-value-default-range>default
+ value</dfn> is the <a href="#minimum" title=concept-input-min>minimum</a>
+ plus half the difference between the <a href="#minimum"
+ title=concept-input-min>minimum</a> and the <a href="#maximum0"
+ title=concept-input-max>maximum</a>, unless the <a href="#maximum0"
+ title=concept-input-max>maximum</a> is less than the <a href="#minimum"
+ title=concept-input-min>minimum</a>, in which case the <a href="#default2"
+ title=concept-input-value-default-range>default value</a> is the <a
+ href="#minimum" title=concept-input-min>minimum</a>.
+
+ <p>When the element is <span>suffering from a range underflow</span>, the
+ user agent must set the element's <a href="#value12"
+ title=concept-fe-value>value</a> to a <a href="#valid1">valid floating
+ point number</a> that represents the <a href="#minimum"
+ title=concept-input-min>minimum</a>.
+
+ <p>When the element is <span>suffering from a range overflow</span>, if the
+ <a href="#maximum0" title=concept-input-max>maximum</a> is not less than
+ the <a href="#minimum" title=concept-input-min>minimum</a>, the user agent
+ must set the element's <a href="#value12" title=concept-fe-value>value</a>
+ to a <a href="#valid1">valid floating point number</a> that represents the
+ <a href="#maximum0" title=concept-input-max>maximum</a>.
+
+ <p>The <a href="#step-" title=concept-input-step-scale>step scale
+ factor</a> is 1. The <a href="#default5"
+ title=concept-input-step-default>default step</a> is 1 (allowing only
+ integers, unless the <code title=attr-input-min><a
+ href="#min2">min</a></code> attribute has a non-integer value).
+
+ <p>When the element is <a href="#suffering3">suffering from a step
+ mismatch</a>, the user agent must round the element's <a href="#value12"
+ title=concept-fe-value>value</a> to the nearest number for which the
+ element would not <a href="#suffering3" title="suffering from a step
+ mismatch">suffer from a step mismatch</a>, and which is greater than or
+ equal to the <a href="#minimum" title=concept-input-min>minimum</a>, and,
+ if the <a href="#maximum0" title=concept-input-max>maximum</a> is not less
+ than the <a href="#minimum" title=concept-input-min>minimum</a>, which is
+ less than or equal to the <a href="#maximum0"
+ title=concept-input-max>maximum</a>.
+
+ <p><strong>The <a href="#algorithm5"
+ title=concept-input-value-string-number>algorithm to convert a string to a
+ number</a>, given a string <var title="">input</var>, is as
+ follows:</strong> If applying the <a href="#rules1">rules for parsing
+ floating point number values</a> to <var title="">input</var> results in
+ an error, then return an error; otherwise, return the resulting number.
+
+ <p><strong>The <a href="#algorithm6"
+ title=concept-input-value-number-string>algorithm to convert a number to a
+ string</a>, given a number <var title="">input</var>, is as
+ follows:</strong> Return a <a href="#valid1">valid floating point
+ number</a> that represents <var title="">input</var>.
+
+ <p>The following common <code><a href="#input0">input</a></code> element
+ content attributes, DOM attributes, and methods apply to the element:
+ <code title=attr-input-autocomplete><a
+ href="#autocomplete0">autocomplete</a></code>, <code
+ title=attr-input-list>list</code>, <code title=attr-input-max><a
+ href="#max4">max</a></code>, <code title=attr-input-min><a
+ href="#min2">min</a></code>, <code title=attr-input-readonly><a
+ href="#readonly0">readonly</a></code>, <code
+ title=attr-input-required>required</code>, and <code
+ title=attr-input-step><a href="#step0">step</a></code> content attributes;
+ <code title=dom-input-list><a href="#list">list</a></code>, <code
+ title=dom-input-valueAsNumber><a
+ href="#valueasnumber">valueAsNumber</a></code>, <code
+ title=dom-input-selectedOption><a
+ href="#selectedoption">selectedOption</a></code>, <code
+ title=dom-input-stepUp><a href="#stepup">stepUp()</a></code>, and <code
+ title=dom-input-stepDown><a href="#stepdown">stepDown()</a></code> DOM
+ attributes.
+
+ <p>The following content attributes must not be specified and do not apply
+ to the element: <code class=no-backref title=attr-input-accept><a
+ href="#accept0">accept</a></code>, <code class=no-backref
+ title=attr-input-alt>alt</code>, <code class=no-backref
+ title=attr-input-checked>checked</code>, <code class=no-backref
+ title=attr-input-maxlength><a href="#maxlength0">maxlength</a></code>,
+ <code class=no-backref title=attr-input-pattern>pattern</code>, <code
+ class=no-backref title=attr-input-size>size</code>, <code class=no-backref
+ title=attr-input-src>src</code>, <code class=no-backref
+ title=attr-fs-target><a href="#target3">target</a></code>, <code
+ class=no-backref title=attr-fs-method><a href="#method">method</a></code>,
+ <code class=no-backref title=attr-fs-enctype><a
+ href="#enctype">enctype</a></code>, and <code class=no-backref
+ title=attr-fs-action><a href="#action">action</a></code>.
+
+ <p>The following DOM attributes do not apply to the element: <code
+ class=no-backref title=dom-input-valueAsDate><a
+ href="#valueasdate">valueAsDate</a></code> and <code class=no-backref
+ title=dom-input-checked><a href="#checked1">checked</a></code>.
+
+ <p class=big-issue>...
+
<h6 id=checkbox><span class=secno>4.10.4.1.13. </span><dfn id=checkbox1
title=attr-input-type-checkbox>Checkbox</dfn> state</h6>
@@ -31284,8 +31417,12 @@
convert a string to a number</a> to the value of the <code
title=attr-input-min><a href="#min2">min</a></code> attribute is a a
number, then that number is the element's <dfn id=minimum
- title=concept-input-min>minimum</dfn>. (Otherwise, the element has no <a
- href="#minimum" title=concept-input-min>minimum</a>.)
+ title=concept-input-min>minimum</dfn>; otherwise, if the the <code
+ title=attr-input-type><a href="#type14">type</a></code> attribute's
+ current state defines a <dfn id=default3
+ title=concept-input-min-default>default minimum</dfn>, then that is the <a
+ href="#minimum" title=concept-input-min>minimum</a>; otherwise, the
+ element has no <a href="#minimum" title=concept-input-min>minimum</a>.)
<p><strong>Constraint validation:</strong> When the element has a <a
href="#min2" title=attr-input-min>minimum</a>, and the result of applying
@@ -31307,8 +31444,12 @@
convert a string to a number</a> to the value of the <code
title=attr-input-max><a href="#max4">max</a></code> attribute is a a
number, then that number is the element's <dfn id=maximum0
- title=concept-input-max>maximum</dfn>. (Otherwise, the element has no <a
- href="#maximum0" title=concept-input-max>maximum</a>.)
+ title=concept-input-max>maximum</dfn>; otherwise, if the the <code
+ title=attr-input-type><a href="#type14">type</a></code> attribute's
+ current state defines a <dfn id=default4
+ title=concept-input-max-default>default maximum</dfn>, then that is the <a
+ href="#maximum0" title=concept-input-max>maximum</a>; otherwise, the
+ element has no <a href="#maximum0" title=concept-input-max>maximum</a>.)
<p><strong>Constraint validation:</strong> When the element has a <a
href="#max4" title=attr-input-max>maximum</a>, and the result of applying
@@ -31343,7 +31484,7 @@
<a href="#value12" title=concept-fe-value>value</a>, by limiting the
allowed values. The section that defines the <code
title=attr-input-type><a href="#type14">type</a></code> attribute's
- current state also defines the <dfn id=default2
+ current state also defines the <dfn id=default5
title=concept-input-step-default>default step</dfn> and the <dfn id=step-
title=concept-input-step-scale>step scale factor</dfn>, which are used in
processing the attribute as described below.
@@ -31363,7 +31504,7 @@
<ol>
<li>If the attribute is absent, then the <a href="#allowed"
title=concept-input-step>allowed value step</a> is the <a
- href="#default2" title=concept-input-step-default>default step</a>
+ href="#default5" title=concept-input-step-default>default step</a>
multiplied by the <a href="#step-" title=concept-input-step-scale>step
scale factor</a>.
@@ -31376,7 +31517,7 @@
number values</a>, when they are applied to the attribute's value, return
an error, zero, or a number less than zero, then the <a href="#allowed"
title=concept-input-step>allowed value step</a> is the <a
- href="#default2" title=concept-input-step-default>default step</a>
+ href="#default5" title=concept-input-step-default>default step</a>
multiplied by the <a href="#step-" title=concept-input-step-scale>step
scale factor</a>.
@@ -35347,7 +35488,7 @@
href="#radiogroup">radiogroup</a></code>
<dd><code title=attr-command-default><a
- href="#default3">default</a></code>
+ href="#default6">default</a></code>
<dd>Also, the <code title=attr-command-title><a
href="#title6">title</a></code> attribute has special semantics on this
@@ -35364,7 +35505,7 @@
attribute boolean <a href="#disabled10" title=dom-command-disabled>disabled</a>;
attribute boolean <a href="#checked4" title=dom-command-checked>checked</a>;
attribute DOMString <a href="#radiogroup0" title=dom-command-radiogroup>radiogroup</a>;
- attribute boolean <a href="#default4" title=dom-command-default>default</a>;
+ attribute boolean <a href="#default7" title=dom-command-default>default</a>;
void <a href="#click" title=dom-command-click>click</a>(); // shadows <code><a href="#htmlelement">HTMLElement</a></code>.<code title=dom-click><a href="#click1">click()</a></code>
};</pre>
@@ -35429,12 +35570,12 @@
<p>If the <code><a href="#command0">command</a></code> element is used when
<span title="menu generation">generating</span> a <span>context
- menu</span>, then the <dfn id=default3
+ menu</span>, then the <dfn id=default6
title=attr-command-default><code>default</code></dfn> attribute indicates,
if present, that the command is the one that would have been invoked if
the user had directly activated the menu's subject instead of using its
context menu. The <code title=attr-command-default><a
- href="#default3">default</a></code> attribute is a <a
+ href="#default6">default</a></code> attribute is a <a
href="#boolean0">boolean attribute</a>.
<div class=example>
@@ -35450,7 +35591,7 @@
title=dom-command-disabled><code>disabled</code></dfn>, <dfn id=checked4
title=dom-command-checked><code>checked</code></dfn>, <dfn id=radiogroup0
title=dom-command-radiogroup><code>radiogroup</code></dfn>, and <dfn
- id=default4 title=dom-command-default><code>default</code></dfn> DOM
+ id=default7 title=dom-command-default><code>default</code></dfn> DOM
attributes must <a href="#reflect">reflect</a> the content attributes of
the same name.
@@ -35932,7 +36073,7 @@
this means for each facet -->.
If the element is a <code><a href="#command0">command</a></code> element
with a <code title=attr-command-default><a
- href="#default3">default</a></code> attribute, mark the command as being
+ href="#default6">default</a></code> attribute, mark the command as being
a default command.</dd>
<!-- XXX if there's an
Icon URL for the command, it should be <span
@@ -37665,9 +37806,9 @@
data mining tools are likely to never instantiate browsing contexts.
<p>The main <a href="#view">view</a> through which a user primarily
- interacts with a user agent is the <dfn id=default5>default view</dfn>.
+ interacts with a user agent is the <dfn id=default8>default view</dfn>.
- <p class=note>The <a href="#default5">default view</a> of a
+ <p class=note>The <a href="#default8">default view</a> of a
<code>Document</code> is given by the <code title="">defaultView</code>
attribute on the <code>Document</code> object's <code>DocumentView</code>
interface. <a href="#refsDOM3VIEWS">[DOM3VIEWS]</a>
@@ -38052,7 +38193,7 @@
<h3 id=the-default0><span class=secno>5.2 </span>The default view</h3>
- <p>The <code>AbstractView</code> object of <a href="#default5"
+ <p>The <code>AbstractView</code> object of <a href="#default8"
title="default view">default views</a> must also implement the <code><a
href="#window">Window</a></code> and <code>EventTarget</code> interfaces.
@@ -38154,7 +38295,7 @@
href="#browsing1">browsing context</a> has an associated <dfn
id=list-of2>list of added properties</dfn> that, when a document is <a
href="#active" title="active document">active</a>, are available on the
- <code>Document</code>'s <a href="#default5">default view</a>'s <code><a
+ <code>Document</code>'s <a href="#default8">default view</a>'s <code><a
href="#window">Window</a></code> object. A <code>Document</code> object's
<a href="#list-of2">list of added properties</a> must be empty when the
<code>Document</code> object is created.
@@ -50446,7 +50587,7 @@
the <code title=dom-MessageEvent-source><a
href="#source3">source</a></code> attribute must be set to the <code><a
href="#window">Window</a></code> object of the <a
- href="#default5">default view</a> of the <a href="#browsing1">browsing
+ href="#default8">default view</a> of the <a href="#browsing1">browsing
context</a> for which the <code>Document</code> object with which the
script is associated is the <a href="#active">active
document</a><!--, if there is one, or null
@@ -50527,7 +50668,7 @@
the <code title=dom-MessageEvent-source><a
href="#source3">source</a></code> attribute must be set to the <code><a
href="#window">Window</a></code> object of the <a
- href="#default5">default view</a> of the <a href="#browsing1">browsing
+ href="#default8">default view</a> of the <a href="#browsing1">browsing
context</a> for which the <code>Document</code> object with which the
script is associated is the <a href="#active">active
document</a><!--, if there is one, or null
Modified: source
===================================================================
--- source 2008-10-01 00:24:43 UTC (rev 2254)
+++ source 2008-10-01 02:38:10 UTC (rev 2255)
@@ -27430,12 +27430,138 @@
title="attr-input-type-range">Range</span> state, the rules in this
section apply.</p>
+ <p>The <code>input</code> element represents a control for setting
+ the element's <span title="concept-fe-value">value</span> to a
+ string representing a number, but with the caveat that the exact
+ value is not important, letting UAs provide a simpler interface than
+ they do for the <span title="attr-input-type-number">Number</span>
+ state.</p>
+
+ <p class="note">In this state, the range and step constraints are
+ enforced even during user input, and there is no way to set the
+ value to the empty string.</p>
+
+ <p>If the element is <i title="concept-input-mutable">mutable</i>,
+ the user should allow the user to change the number represented by
+ its <span title="concept-fe-value">value</span>, as obtained from
+ applying the <span>rules for parsing floating point number
+ values</span> to it. User agents must not allow the user to set the
+ <span title="concept-fe-value">value</span> to a string that is not
+ a <span>valid floating point number</span>. If the user agent
+ provides a user interface for selecting a number, then the <span
+ title="concept-fe-value">value</span> must be set to a <span>valid
+ floating point number</span> representing the user's selection. User
+ agents must not allow the user to set the <span
+ title="concept-fe-value">value</span> to the empty string.</p>
+
+ <p><strong>The <span>value sanitization algorithm</span> is as
+ follows:</strong> If the <span title="concept-fe-value">value</span>
+ of the element is not a <span>valid floating point number</span>,
+ then set it to a <span>valid floating point number</span> that
+ represents the <span
+ title="concept-input-value-default-range">default value</span>.</p>
+
+ <p>The <code title="attr-input-min">min</code> attribute, if
+ specified, must have a value that is a <span>valid floating point
+ number</span>. The <span title="concept-input-min-default">default
+ minimum</span> is 0. The <code title="attr-input-max">max</code>
+ attribute, if specified, must have a value that is a <span>valid
+ floating point number</span>. The <span
+ title="concept-input-min-default">default minimum</span> is 100.</p>
+
+ <p>The <dfn title="concept-input-value-default-range">default
+ value</dfn> is the <span title="concept-input-min">minimum</span>
+ plus half the difference between the <span
+ title="concept-input-min">minimum</span> and the <span
+ title="concept-input-max">maximum</span>, unless the <span
+ title="concept-input-max">maximum</span> is less than the <span
+ title="concept-input-min">minimum</span>, in which case the <span
+ title="concept-input-value-default-range">default value</span> is
+ the <span title="concept-input-min">minimum</span>.</p>
+
+ <p>When the element is <span>suffering from a range
+ underflow</span>, the user agent must set the element's <span
+ title="concept-fe-value">value</span> to a <span>valid floating point
+ number</span> that represents the <span
+ title="concept-input-min">minimum</span>.</p>
+
+ <p>When the element is <span>suffering from a range overflow</span>,
+ if the <span title="concept-input-max">maximum</span> is not less
+ than the <span title="concept-input-min">minimum</span>, the user
+ agent must set the element's <span
+ title="concept-fe-value">value</span> to a <span>valid floating point
+ number</span> that represents the <span
+ title="concept-input-max">maximum</span>.</p>
+
+ <p>The <span title="concept-input-step-scale">step scale
+ factor</span> is 1. The <span
+ title="concept-input-step-default">default step</span> is 1
+ (allowing only integers, unless the <code
+ title="attr-input-min">min</code> attribute has a non-integer
+ value).</p>
+
+ <p>When the element is <span>suffering from a step mismatch</span>,
+ the user agent must round the element's <span
+ title="concept-fe-value">value</span> to the nearest number for
+ which the element would not <span title="suffering from a step
+ mismatch">suffer from a step mismatch</span>, and which is greater
+ than or equal to the <span title="concept-input-min">minimum</span>,
+ and, if the <span title="concept-input-max">maximum</span> is not
+ less than the <span title="concept-input-min">minimum</span>, which
+ is less than or equal to the <span
+ title="concept-input-max">maximum</span>.</p>
+
+ <p><strong>The <span
+ title="concept-input-value-string-number">algorithm to convert a
+ string to a number</span>, given a string <var title="">input</var>,
+ is as follows:</strong> If applying the <span>rules for parsing
+ floating point number values</span> to <var title="">input</var>
+ results in an error, then return an error; otherwise, return the
+ resulting number.</p>
+
+ <p><strong>The <span
+ title="concept-input-value-number-string">algorithm to convert a
+ number to a string</span>, given a number <var title="">input</var>,
+ is as follows:</strong> Return a <span>valid floating point
+ number</span> that represents <var title="">input</var>.</p>
+
+ <p>The following common <code>input</code> element content
+ attributes, DOM attributes, and methods apply to the element:
+ <code title="attr-input-autocomplete">autocomplete</code>,
+ <code title="attr-input-list">list</code>,
+ <code title="attr-input-max">max</code>,
+ <code title="attr-input-min">min</code>,
+ <code title="attr-input-readonly">readonly</code>,
+ <code title="attr-input-required">required</code>, and
+ <code title="attr-input-step">step</code> content attributes;
+ <code title="dom-input-list">list</code>,
+ <code title="dom-input-valueAsNumber">valueAsNumber</code>,
+ <code title="dom-input-selectedOption">selectedOption</code>,
+ <code title="dom-input-stepUp">stepUp()</code>, and
+ <code title="dom-input-stepDown">stepDown()</code> DOM attributes.</p>
+
+ <p>The following content attributes must not be specified and do not
+ apply to the element:
+ <code class="no-backref" title="attr-input-accept">accept</code>,
+ <code class="no-backref" title="attr-input-alt">alt</code>,
+ <code class="no-backref" title="attr-input-checked">checked</code>,
+ <code class="no-backref" title="attr-input-maxlength">maxlength</code>,
+ <code class="no-backref" title="attr-input-pattern">pattern</code>,
+ <code class="no-backref" title="attr-input-size">size</code>,
+ <code class="no-backref" title="attr-input-src">src</code>,
+ <code class="no-backref" title="attr-fs-target">target</code>,
+ <code class="no-backref" title="attr-fs-method">method</code>,
+ <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
+ <code class="no-backref" title="attr-fs-action">action</code>.</p>
+
+ <p>The following DOM attributes do not apply to the element:
+ <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
+ <code class="no-backref" title="dom-input-checked">checked</code>.</p>
+
<p class="big-issue">...</p>
- <!-- XXX default min/max, calling valueAsNumber with out-of-range values -->
-
<h6><dfn title="attr-input-type-checkbox">Checkbox</dfn> state</h6>
<p>When an <code>input</code> element's <code
@@ -27745,7 +27871,11 @@
string to a number</span> to the value of the <code
title="attr-input-min">min</code> attribute is a a number, then that
number is the element's <dfn
- title="concept-input-min">minimum</dfn>. (Otherwise, the element has
+ title="concept-input-min">minimum</dfn>; otherwise, if the the <code
+ title="attr-input-type">type</code> attribute's current state
+ defines a <dfn title="concept-input-min-default">default
+ minimum</dfn>, then that is the <span
+ title="concept-input-min">minimum</span>; otherwise, the element has
no <span title="concept-input-min">minimum</span>.)</p>
<p><strong>Constraint validation:</strong> When the element has a
@@ -27768,7 +27898,11 @@
string to a number</span> to the value of the <code
title="attr-input-max">max</code> attribute is a a number, then that
number is the element's <dfn
- title="concept-input-max">maximum</dfn>. (Otherwise, the element has
+ title="concept-input-max">maximum</dfn>; otherwise, if the the <code
+ title="attr-input-type">type</code> attribute's current state
+ defines a <dfn title="concept-input-max-default">default
+ maximum</dfn>, then that is the <span
+ title="concept-input-max">maximum</span>; otherwise, the element has
no <span title="concept-input-max">maximum</span>.)</p>
<p><strong>Constraint validation:</strong> When the element has a
More information about the Commit-Watchers
mailing list