Changeset 200069 in webkit


Ignore:
Timestamp:
Apr 25, 2016 8:52:08 PM (8 years ago)
Author:
mmaxfield@apple.com
Message:

Cloning a textarea does not clone the textarea's value
https://bugs.webkit.org/show_bug.cgi?id=156637

Reviewed by Chris Dumez.

https://dom.spec.whatwg.org/#concept-node-clone describes that the value
of a node shouldn't be copied when cloning the node.

  • fast/forms/checkValidity-cloneNode-crash-expected.txt:
  • fast/forms/checkValidity-cloneNode-crash.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r200065 r200069  
     12016-04-25  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Cloning a textarea does not clone the textarea's value
     4        https://bugs.webkit.org/show_bug.cgi?id=156637
     5
     6        Reviewed by Chris Dumez.
     7
     8        https://dom.spec.whatwg.org/#concept-node-clone describes that the value
     9        of a node shouldn't be copied when cloning the node.
     10
     11        * fast/forms/checkValidity-cloneNode-crash-expected.txt:
     12        * fast/forms/checkValidity-cloneNode-crash.html:
     13
    1142016-04-25  Joseph Pecoraro  <pecoraro@apple.com>
    215
  • trunk/LayoutTests/fast/forms/checkValidity-cloneNode-crash-expected.txt

    r199607 r200069  
    1111PASS element2.checkValidity() is false
    1212PASS element.checkValidity() is true
     13PASS element2.value is ""
     14PASS element2.checkValidity() is false
    1315PASS element2.checkValidity() is true
    1416PASS successfullyParsed is true
  • trunk/LayoutTests/fast/forms/checkValidity-cloneNode-crash.html

    r199607 r200069  
    4545    shouldBeTrue("element.checkValidity()");
    4646    element2 = element.cloneNode();
    47     // https://bugs.webkit.org/show_bug.cgi?id=156637 will fix this bug.
    48     // shouldBeTrue("element2.checkValidity()");
     47    shouldBeEqualToString("element2.value", "");
     48    shouldBeFalse("element2.checkValidity()");
    4949    element2.value = element.value;
    5050    shouldBeTrue("element2.checkValidity()");
Note: See TracChangeset for help on using the changeset viewer.