[html5] r7282 - [giow] (0) Make .formenctype and .formaction IDL attributes return '' rather tha [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Aug 27 10:54:27 PDT 2012
Author: ianh
Date: 2012-08-27 10:54:25 -0700 (Mon, 27 Aug 2012)
New Revision: 7282
Modified:
complete.html
index
source
Log:
[giow] (0) Make .formenctype and .formaction IDL attributes return '' rather than default values when they are not set, to indicate that they defer to the form.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17185
Affected topics: HTML, WebSocket API
Modified: complete.html
===================================================================
--- complete.html 2012-08-27 02:08:30 UTC (rev 7281)
+++ complete.html 2012-08-27 17:54:25 UTC (rev 7282)
@@ -4888,8 +4888,8 @@
represents that state. Otherwise, if the attribute value matches
none of the keywords but there is a <i>missing value default</i>
state defined, then <em>that</em> is the state represented by the
- attribute. Otherwise, there is no default, and invalid values must
- be ignored.</p>
+ attribute. Otherwise, there is no default, and invalid values mean
+ that there is no state represented.</p>
<p>When the attribute is <em>not</em> specified, if there is a
<i>missing value default</i> state defined, then that is the state
@@ -8922,8 +8922,10 @@
attribute</a>, and the IDL attribute is <dfn id=limited-to-only-known-values>limited to only
known values</dfn>, then, on getting, the IDL attribute must return
the conforming value associated with the state the attribute is in
- (in its canonical case), or the empty string if the attribute is in
- a state that has no associated keyword value; and on setting, the
+ (in its canonical case), if any, or the empty string if the
+ attribute is in a state that has no associated keyword value or if
+ the attribute is not in a state (e.g. the attribute is missing and
+ there is no <i>missing value default</i>); and on setting, the
content attribute must be set to the specified new value.</p>
<p>If a reflecting IDL attribute is a <code>DOMString</code>
@@ -55275,16 +55277,15 @@
to the state <dfn id=attr-fs-method-post title=attr-fs-method-POST>POST</dfn>, indicating
the HTTP POST method.</li>
-<!--FORM-DIALOG-->
<li>The keyword <dfn id=attr-fs-method-dialog-keyword title=attr-fs-method-dialog-keyword><code>dialog</code></dfn>,
mapping to the state <dfn id=attr-fs-method-dialog title=attr-fs-method-dialog>dialog</dfn>, indicating that
submitting the <code><a href=#the-form-element>form</a></code> is intended to close the
<code><a href=#the-dialog-element>dialog</a></code> box in which the form finds itself, if any, and
otherwise not submit.</li>
-<!--FORM-DIALOG-->
- </ul><p>The <i>missing value default</i> for these attributes is the
- <a href=#attr-fs-method-get title=attr-fs-method-GET>GET</a> state.</p>
+ </ul><p>The <i>invalid value default</i> for these attributes is the
+ <a href=#attr-fs-method-get title=attr-fs-method-GET>GET</a> state. (There is no
+ <i>missing value default</i>.)</p>
<p>The <dfn id=concept-fs-method title=concept-fs-method>method</dfn> of an element is
one of those states. If the element is a <a href=#concept-submit-button title=concept-submit-button>submit button</a> and has a <code title=attr-fs-formmethod><a href=#attr-fs-formmethod>formmethod</a></code> attribute, then the
@@ -55300,9 +55301,9 @@
<ul><li>The "<dfn id=attr-fs-enctype-urlencoded title=attr-fs-enctype-urlencoded><code>application/x-www-form-urlencoded</code></dfn>" keyword and corresponding state.</li>
<li>The "<dfn id=attr-fs-enctype-formdata title=attr-fs-enctype-formdata><code>multipart/form-data</code></dfn>" keyword and corresponding state.</li>
<li>The "<dfn id=attr-fs-enctype-text title=attr-fs-enctype-text><code>text/plain</code></dfn>" keyword and corresponding state.</li>
- </ul><p>The <i>missing value default</i> for these attributes is the
+ </ul><p>The <i>invalid value default</i> for these attributes is the
<code title=attr-fs-enctype-urlencoded><a href=#attr-fs-enctype-urlencoded>application/x-www-form-urlencoded</a></code>
- state.</p>
+ state. (There is no <i>missing value default</i>.)</p>
<p>The <dfn id=concept-fs-enctype title=concept-fs-enctype>enctype</dfn> of an element
is one of those three states. If the element is a <a href=#concept-submit-button title=concept-submit-button>submit button</a> and has a <code title=attr-fs-formenctype><a href=#attr-fs-formenctype>formenctype</a></code> attribute, then the
Modified: index
===================================================================
--- index 2012-08-27 02:08:30 UTC (rev 7281)
+++ index 2012-08-27 17:54:25 UTC (rev 7282)
@@ -4888,8 +4888,8 @@
represents that state. Otherwise, if the attribute value matches
none of the keywords but there is a <i>missing value default</i>
state defined, then <em>that</em> is the state represented by the
- attribute. Otherwise, there is no default, and invalid values must
- be ignored.</p>
+ attribute. Otherwise, there is no default, and invalid values mean
+ that there is no state represented.</p>
<p>When the attribute is <em>not</em> specified, if there is a
<i>missing value default</i> state defined, then that is the state
@@ -8922,8 +8922,10 @@
attribute</a>, and the IDL attribute is <dfn id=limited-to-only-known-values>limited to only
known values</dfn>, then, on getting, the IDL attribute must return
the conforming value associated with the state the attribute is in
- (in its canonical case), or the empty string if the attribute is in
- a state that has no associated keyword value; and on setting, the
+ (in its canonical case), if any, or the empty string if the
+ attribute is in a state that has no associated keyword value or if
+ the attribute is not in a state (e.g. the attribute is missing and
+ there is no <i>missing value default</i>); and on setting, the
content attribute must be set to the specified new value.</p>
<p>If a reflecting IDL attribute is a <code>DOMString</code>
@@ -55275,16 +55277,15 @@
to the state <dfn id=attr-fs-method-post title=attr-fs-method-POST>POST</dfn>, indicating
the HTTP POST method.</li>
-<!--FORM-DIALOG-->
<li>The keyword <dfn id=attr-fs-method-dialog-keyword title=attr-fs-method-dialog-keyword><code>dialog</code></dfn>,
mapping to the state <dfn id=attr-fs-method-dialog title=attr-fs-method-dialog>dialog</dfn>, indicating that
submitting the <code><a href=#the-form-element>form</a></code> is intended to close the
<code><a href=#the-dialog-element>dialog</a></code> box in which the form finds itself, if any, and
otherwise not submit.</li>
-<!--FORM-DIALOG-->
- </ul><p>The <i>missing value default</i> for these attributes is the
- <a href=#attr-fs-method-get title=attr-fs-method-GET>GET</a> state.</p>
+ </ul><p>The <i>invalid value default</i> for these attributes is the
+ <a href=#attr-fs-method-get title=attr-fs-method-GET>GET</a> state. (There is no
+ <i>missing value default</i>.)</p>
<p>The <dfn id=concept-fs-method title=concept-fs-method>method</dfn> of an element is
one of those states. If the element is a <a href=#concept-submit-button title=concept-submit-button>submit button</a> and has a <code title=attr-fs-formmethod><a href=#attr-fs-formmethod>formmethod</a></code> attribute, then the
@@ -55300,9 +55301,9 @@
<ul><li>The "<dfn id=attr-fs-enctype-urlencoded title=attr-fs-enctype-urlencoded><code>application/x-www-form-urlencoded</code></dfn>" keyword and corresponding state.</li>
<li>The "<dfn id=attr-fs-enctype-formdata title=attr-fs-enctype-formdata><code>multipart/form-data</code></dfn>" keyword and corresponding state.</li>
<li>The "<dfn id=attr-fs-enctype-text title=attr-fs-enctype-text><code>text/plain</code></dfn>" keyword and corresponding state.</li>
- </ul><p>The <i>missing value default</i> for these attributes is the
+ </ul><p>The <i>invalid value default</i> for these attributes is the
<code title=attr-fs-enctype-urlencoded><a href=#attr-fs-enctype-urlencoded>application/x-www-form-urlencoded</a></code>
- state.</p>
+ state. (There is no <i>missing value default</i>.)</p>
<p>The <dfn id=concept-fs-enctype title=concept-fs-enctype>enctype</dfn> of an element
is one of those three states. If the element is a <a href=#concept-submit-button title=concept-submit-button>submit button</a> and has a <code title=attr-fs-formenctype><a href=#attr-fs-formenctype>formenctype</a></code> attribute, then the
Modified: source
===================================================================
--- source 2012-08-27 02:08:30 UTC (rev 7281)
+++ source 2012-08-27 17:54:25 UTC (rev 7282)
@@ -3997,8 +3997,8 @@
represents that state. Otherwise, if the attribute value matches
none of the keywords but there is a <i>missing value default</i>
state defined, then <em>that</em> is the state represented by the
- attribute. Otherwise, there is no default, and invalid values must
- be ignored.</p>
+ attribute. Otherwise, there is no default, and invalid values mean
+ that there is no state represented.</p>
<p>When the attribute is <em>not</em> specified, if there is a
<i>missing value default</i> state defined, then that is the state
@@ -8922,8 +8922,10 @@
attribute</span>, and the IDL attribute is <dfn>limited to only
known values</dfn>, then, on getting, the IDL attribute must return
the conforming value associated with the state the attribute is in
- (in its canonical case), or the empty string if the attribute is in
- a state that has no associated keyword value; and on setting, the
+ (in its canonical case), if any, or the empty string if the
+ attribute is in a state that has no associated keyword value or if
+ the attribute is not in a state (e.g. the attribute is missing and
+ there is no <i>missing value default</i>); and on setting, the
content attribute must be set to the specified new value.</p>
<p>If a reflecting IDL attribute is a <code>DOMString</code>
@@ -64448,7 +64450,6 @@
to the state <dfn title="attr-fs-method-POST">POST</dfn>, indicating
the HTTP POST method.</li>
-<!--END w3c-html--><!--FORM-DIALOG-->
<li>The keyword <dfn
title="attr-fs-method-dialog-keyword"><code>dialog</code></dfn>,
mapping to the state <dfn
@@ -64456,12 +64457,12 @@
submitting the <code>form</code> is intended to close the
<code>dialog</code> box in which the form finds itself, if any, and
otherwise not submit.</li>
-<!--START w3c-html--><!--FORM-DIALOG-->
</ul>
- <p>The <i>missing value default</i> for these attributes is the
- <span title="attr-fs-method-GET">GET</span> state.</p>
+ <p>The <i>invalid value default</i> for these attributes is the
+ <span title="attr-fs-method-GET">GET</span> state. (There is no
+ <i>missing value default</i>.)</p>
<p>The <dfn title="concept-fs-method">method</dfn> of an element is
one of those states. If the element is a <span
@@ -64484,10 +64485,10 @@
<li>The "<dfn title="attr-fs-enctype-text"><code>text/plain</code></dfn>" keyword and corresponding state.</li>
</ul>
- <p>The <i>missing value default</i> for these attributes is the
+ <p>The <i>invalid value default</i> for these attributes is the
<code
title="attr-fs-enctype-urlencoded">application/x-www-form-urlencoded</code>
- state.</p>
+ state. (There is no <i>missing value default</i>.)</p>
<p>The <dfn title="concept-fs-enctype">enctype</dfn> of an element
is one of those three states. If the element is a <span
More information about the Commit-Watchers
mailing list