[Webkit-unassigned] [Bug 156637] Cloning a textarea does not clone the textarea's value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 16 20:38:26 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=156637

--- Comment #4 from Chris Dumez <cdumez at apple.com> ---
Myles, why do you expect the textarea cloning to clone the value? I am looking at the spec but I cannot find the part that says we should (maybe I missed it or maybe it is a bug in the spec).

There is what I found in the spec:
https://dom.spec.whatwg.org/#concept-node-clone

-> Says we should copy over all the element attributes, but 'value' is not a content attribute of textarea.
-> Says to run any cloning steps defined for the element in other applicable specifications

So I looked at the HTML spec for HTMLTextAreaElement but it does not seem to define any additional cloning steps:
https://html.spec.whatwg.org/multipage/forms.html#htmltextareaelement

The only cloning steps I find on this page are:
"The cloning steps for input elements must propagate the value, dirty value flag, checkedness, and dirty checkedness flag from the node being cloned to the copy."

However, HTMLTextAreaElement is not an input element (HTMLInputElement).

So, unless I am mistaken, Firefox and Safari/WebKit both match the specification.
Assuming I did not miss anything and you think we should clone the value, I suggest filing a bug against the HTML spec.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160417/55daf07b/attachment.html>


More information about the webkit-unassigned mailing list