Skip to content
Permalink
Browse files

[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

git-svn-id: http://svn.whatwg.org/webapps@7282 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 27, 2012
1 parent 2fce0af commit 43ce796b8742dfff77d9106e1dc4db65da5d7a72
Showing with 33 additions and 30 deletions.
  1. +11 −10 complete.html
  2. +11 −10 index
  3. +11 −10 source
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
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>
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
<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
21 index
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
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>
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
<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
21 source
@@ -3997,8 +3997,8 @@ is conforming depends on which specs apply, and leaves it at that. -->
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 @@ is conforming depends on which specs apply, and leaves it at that. -->
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>
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
title="attr-fs-method-dialog">dialog</dfn>, indicating that
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
<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

0 comments on commit 43ce796

Please sign in to comment.