Skip to content

Commit 957fd0c

Browse files
authored
Add cloning steps for textarea
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 whatwg#1233.
1 parent 2a11eef commit 957fd0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49562,6 +49562,11 @@ interface <dfn>HTMLTextAreaElement</dfn> : <span>HTMLElement</span> {
4956249562
interacts with the control in a way that changes the <span data-x="concept-textarea-raw-value">raw
4956349563
value</span>.</p>
4956449564

49565+
<p>The <span data-x="concept-node-clone-ext">cloning steps</span> for <code>textarea</code>
49566+
elements must propagate the <span data-x="concept-textarea-raw-value">raw value</span> and <span
49567+
data-x="concept-textarea-dirty">dirty value flag</span> from the node being cloned to the
49568+
copy.</p>
49569+
4956549570
<p>When the <code>textarea</code> element's <code>textContent</code> IDL attribute changes value,
4956649571
if the element's <span data-x="concept-textarea-dirty">dirty value flag</span> is false, then the
4956749572
element's <span data-x="concept-textarea-raw-value">raw value</span> must be set to the value of

0 commit comments

Comments
 (0)