Skip to content

Commit

Permalink
[e] (0) Explain what the soft/hard states are for.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9889

git-svn-id: http://svn.whatwg.org/webapps@5374 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 27, 2010
1 parent d429f02 commit bf799a3
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
14 changes: 12 additions & 2 deletions complete.html
Expand Up @@ -43816,11 +43816,21 @@ <h4 id=the-textarea-element><span class=secno>4.10.13 </span>The <dfn><code>text
<p>The <dfn id=attr-textarea-wrap title=attr-textarea-wrap><code>wrap</code></dfn>
attribute is an <a href=#enumerated-attribute>enumerated attribute</a> with two keywords
and states: the <dfn id=attr-textarea-wrap-soft title=attr-textarea-wrap-soft><code>soft</code></dfn> keyword
which maps to the <dfn id=attr-textarea-wrap-soft-state title=attr-textarea-wrap-soft-state>Soft</dfn> state, and the
which maps to the <a href=#attr-textarea-wrap-soft-state title=attr-textarea-wrap-soft-state>Soft</a> state, and the
<dfn id=attr-textarea-wrap-hard title=attr-textarea-wrap-hard><code>hard</code></dfn> keyword
which maps to the <dfn id=attr-textarea-wrap-hard-state title=attr-textarea-wrap-hard-state>Hard</dfn> state. The
which maps to the <a href=#attr-textarea-wrap-hard-state title=attr-textarea-wrap-hard-state>Hard</a> state. The
<i>missing value default</i> is the <a href=#attr-textarea-wrap-soft-state title=attr-textarea-wrap-soft-state>Soft</a> state.</p>

<p>The <dfn id=attr-textarea-wrap-soft-state title=attr-textarea-wrap-soft-state>Soft</dfn> state
indicates that the text in the <code><a href=#the-textarea-element>textarea</a></code> is not to be
wrapped when it is submitted (though it can still be wrapped in the
rendering).</p>

<p>The <dfn id=attr-textarea-wrap-hard-state title=attr-textarea-wrap-hard-state>Hard</dfn> state
indicates that the text in the <code><a href=#the-textarea-element>textarea</a></code> is to have
newlines added by the user agent so that the text is wrapped when it
is submitted.</p>

<p>If the element's <code title=attr-textarea-wrap><a href=#attr-textarea-wrap>wrap</a></code>
attribute is in the <a href=#attr-textarea-wrap-hard-state title=attr-textarea-wrap-hard-state>Hard</a> state, the <code title=attr-textarea-cols><a href=#attr-textarea-cols>cols</a></code> attribute must be
specified.</p>
Expand Down
14 changes: 12 additions & 2 deletions index
Expand Up @@ -43741,11 +43741,21 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
<p>The <dfn id=attr-textarea-wrap title=attr-textarea-wrap><code>wrap</code></dfn>
attribute is an <a href=#enumerated-attribute>enumerated attribute</a> with two keywords
and states: the <dfn id=attr-textarea-wrap-soft title=attr-textarea-wrap-soft><code>soft</code></dfn> keyword
which maps to the <dfn id=attr-textarea-wrap-soft-state title=attr-textarea-wrap-soft-state>Soft</dfn> state, and the
which maps to the <a href=#attr-textarea-wrap-soft-state title=attr-textarea-wrap-soft-state>Soft</a> state, and the
<dfn id=attr-textarea-wrap-hard title=attr-textarea-wrap-hard><code>hard</code></dfn> keyword
which maps to the <dfn id=attr-textarea-wrap-hard-state title=attr-textarea-wrap-hard-state>Hard</dfn> state. The
which maps to the <a href=#attr-textarea-wrap-hard-state title=attr-textarea-wrap-hard-state>Hard</a> state. The
<i>missing value default</i> is the <a href=#attr-textarea-wrap-soft-state title=attr-textarea-wrap-soft-state>Soft</a> state.</p>

<p>The <dfn id=attr-textarea-wrap-soft-state title=attr-textarea-wrap-soft-state>Soft</dfn> state
indicates that the text in the <code><a href=#the-textarea-element>textarea</a></code> is not to be
wrapped when it is submitted (though it can still be wrapped in the
rendering).</p>

<p>The <dfn id=attr-textarea-wrap-hard-state title=attr-textarea-wrap-hard-state>Hard</dfn> state
indicates that the text in the <code><a href=#the-textarea-element>textarea</a></code> is to have
newlines added by the user agent so that the text is wrapped when it
is submitted.</p>

<p>If the element's <code title=attr-textarea-wrap><a href=#attr-textarea-wrap>wrap</a></code>
attribute is in the <a href=#attr-textarea-wrap-hard-state title=attr-textarea-wrap-hard-state>Hard</a> state, the <code title=attr-textarea-cols><a href=#attr-textarea-cols>cols</a></code> attribute must be
specified.</p>
Expand Down
18 changes: 14 additions & 4 deletions source
Expand Up @@ -48988,14 +48988,24 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
attribute is an <span>enumerated attribute</span> with two keywords
and states: the <dfn
title="attr-textarea-wrap-soft"><code>soft</code></dfn> keyword
which maps to the <dfn
title="attr-textarea-wrap-soft-state">Soft</dfn> state, and the
which maps to the <span
title="attr-textarea-wrap-soft-state">Soft</span> state, and the
<dfn title="attr-textarea-wrap-hard"><code>hard</code></dfn> keyword
which maps to the <dfn
title="attr-textarea-wrap-hard-state">Hard</dfn> state. The
which maps to the <span
title="attr-textarea-wrap-hard-state">Hard</span> state. The
<i>missing value default</i> is the <span
title="attr-textarea-wrap-soft-state">Soft</span> state.</p>

<p>The <dfn title="attr-textarea-wrap-soft-state">Soft</dfn> state
indicates that the text in the <code>textarea</code> is not to be
wrapped when it is submitted (though it can still be wrapped in the
rendering).</p>

<p>The <dfn title="attr-textarea-wrap-hard-state">Hard</dfn> state
indicates that the text in the <code>textarea</code> is to have
newlines added by the user agent so that the text is wrapped when it
is submitted.</p>

<p>If the element's <code title="attr-textarea-wrap">wrap</code>
attribute is in the <span
title="attr-textarea-wrap-hard-state">Hard</span> state, the <code
Expand Down

0 comments on commit bf799a3

Please sign in to comment.