DescriptionRevert of node.cloneNode() should clone the value of file upload elements (https://codereview.chromium.org/267713006/)
Reason for revert:
Caused a serious regression, crbug.com/388795.
Original issue's description:
> node.cloneNode() should clone the value of file selected
>
> when input element of type file with a selected file is cloned, the cloned node should
> also have the same file as selected.
> HTML specification states:
> http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html
> "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."
>
> The value for the input element of type fileupload is the filename.
>
> Behaviours in major Browser:
> Firefox- clones filename
> Safari, IE & Opera- do not Clone filename
>
> BUG=71536
> TEST=fast/forms/file/input-file-element-clone.html
>
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173626
BUG=71536, 388795
TBR=gnanasekar.s@samsung.com
NOTRY=true
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177256
Patch Set 1 #
Created: 6 years, 5 months ago
(Patch set is too large to download)
Messages
Total messages: 7 (0 generated)
|