Skip to content

Commit

Permalink
Add cloning steps for textarea
Browse files Browse the repository at this point in the history
This makes textarea cloning work like input cloning, and matches Chrome.
Safari and Firefox have indicated they are willing to move in this
direction as well, as it is more developer-friendly for textarea to
behave the same as input. Closes #1233.
  • Loading branch information
domenic authored Sep 15, 2016
1 parent 2a11eef commit 957fd0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -49562,6 +49562,11 @@ interface <dfn>HTMLTextAreaElement</dfn> : <span>HTMLElement</span> {
interacts with the control in a way that changes the <span data-x="concept-textarea-raw-value">raw
value</span>.</p>

<p>The <span data-x="concept-node-clone-ext">cloning steps</span> for <code>textarea</code>
elements must propagate the <span data-x="concept-textarea-raw-value">raw value</span> and <span
data-x="concept-textarea-dirty">dirty value flag</span> from the node being cloned to the
copy.</p>

<p>When the <code>textarea</code> element's <code>textContent</code> IDL attribute changes value,
if the element's <span data-x="concept-textarea-dirty">dirty value flag</span> is false, then the
element's <span data-x="concept-textarea-raw-value">raw value</span> must be set to the value of
Expand Down

0 comments on commit 957fd0c

Please sign in to comment.