Skip to content

Commit

Permalink
Editorial: add textarea wrap enumerated attribute table
Browse files Browse the repository at this point in the history
Helps with whatwg#9832.
  • Loading branch information
keithamus authored Nov 28, 2023
1 parent 9db9c30 commit 7405231
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -54203,22 +54203,31 @@ interface <dfn interface>HTMLTextAreaElement</dfn> : <span>HTMLElement</span> {
</div>

<p>The <dfn element-attr for="textarea"><code data-x="attr-textarea-wrap">wrap</code></dfn>
attribute is an <span>enumerated attribute</span> with two keywords and states: the <dfn
attr-value for="textarea/wrap"><code data-x="attr-textarea-wrap-soft">soft</code></dfn> keyword
which maps to the <span data-x="attr-textarea-wrap-soft-state">Soft</span> state, and the <dfn
attr-value for="textarea/wrap"><code data-x="attr-textarea-wrap-hard">hard</code></dfn> keyword
which maps to the <span data-x="attr-textarea-wrap-hard-state">Hard</span> state. The <i
data-x="missing value default">missing value default</i> and <i data-x="invalid value
default">invalid value default</i> are both the <span
data-x="attr-textarea-wrap-soft-state">Soft</span> state.</p>
attribute is an <span>enumerated attribute</span> with the following keywords and states:</p>

<p>The <dfn data-x="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>
<table>
<thead>
<tr>
<th>Keyword
<th>State
<th>Brief description
<tbody>
<tr>
<td><dfn attr-value for="textarea/wrap"><code
data-x="attr-textarea-wrap-soft">soft</code></dfn>
<td><dfn data-x="attr-textarea-wrap-soft-state">Soft</dfn>
<td>Text is not to be wrapped when submitted (though can still be wrapped in the rendering).
<tr>
<td><dfn attr-value for="textarea/wrap"><code
data-x="attr-textarea-wrap-hard">hard</code></dfn>
<td><dfn data-x="attr-textarea-wrap-hard-state">Hard</dfn>
<td>Text is to have newlines added by the user agent so that the text is wrapped when it is
submitted.
</table>

<p>The <dfn data-x="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>The attribute's <i data-x="missing value default">missing value default</i> and <i
data-x="invalid value default">invalid value default</i> are both the <span
data-x="attr-textarea-wrap-soft-state">Soft</span> state.</p>

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

0 comments on commit 7405231

Please sign in to comment.