Changeset 216474 in webkit


Ignore:
Timestamp:
May 8, 2017 7:46:26 PM (7 years ago)
Author:
Chris Dumez
Message:

Drop [CEReactions] from CharacterData operations
https://bugs.webkit.org/show_bug.cgi?id=171813

Reviewed by Ryosuke Niwa.

Drop [CEReactions] from CharacterData operations to match the DOM specification:

I believe WebKit had this because Attr used to have Text child nodes. Therefore, modifying
those Text child nodes via the CharacterData API could modify the value of an attribute,
requiring us to run attributeChangedCallback for Custom Elements. However, as of
<https://trac.webkit.org/r216259>, Attr can no longer have Text child nodes.

I have also verified that Blink does not have [CEReactions] for those methods.

No new tests, no expected Web-facing behavior change.

  • dom/CharacterData.idl:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r216472 r216474  
     12017-05-08  Chris Dumez  <cdumez@apple.com>
     2
     3        Drop [CEReactions] from CharacterData operations
     4        https://bugs.webkit.org/show_bug.cgi?id=171813
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Drop [CEReactions] from CharacterData operations to match the DOM specification:
     9        - https://dom.spec.whatwg.org/#interface-characterdata
     10
     11        I believe WebKit had this because Attr used to have Text child nodes. Therefore, modifying
     12        those Text child nodes via the CharacterData API could modify the value of an attribute,
     13        requiring us to run attributeChangedCallback for Custom Elements. However, as of
     14        <https://trac.webkit.org/r216259>, Attr can no longer have Text child nodes.
     15
     16        I have also verified that Blink does not have [CEReactions] for those methods.
     17
     18        No new tests, no expected Web-facing behavior change.
     19
     20        * dom/CharacterData.idl:
     21
    1222017-05-08  Jeremy Jones  <jeremyj@apple.com>
    223
  • trunk/Source/WebCore/dom/CharacterData.idl

    r216339 r216474  
    1919
    2020interface CharacterData : Node {
    21     [CEReactions] attribute [TreatNullAs=EmptyString] DOMString data; // FIXME: Not marked as [CEReactions] in the spec.
     21    attribute [TreatNullAs=EmptyString] DOMString data;
    2222    readonly attribute unsigned long length;
    2323    [MayThrowException] DOMString substringData(unsigned long offset, unsigned long count);
    24     [CEReactions] void appendData(DOMString data); // FIXME: Not marked as [CEReactions] in the spec.
    25     [CEReactions, MayThrowException] void insertData(unsigned long offset, DOMString data); // FIXME: Not marked as [CEReactions] in the spec.
    26     [CEReactions, MayThrowException] void deleteData(unsigned long offset, unsigned long count); // FIXME: Not marked as [CEReactions] in the spec.
    27     [CEReactions, MayThrowException] void replaceData(unsigned long offset, unsigned long count, DOMString data); // FIXME: Not marked as [CEReactions] in the spec.
     24    void appendData(DOMString data);
     25    [MayThrowException] void insertData(unsigned long offset, DOMString data);
     26    [MayThrowException] void deleteData(unsigned long offset, unsigned long count);
     27    [MayThrowException] void replaceData(unsigned long offset, unsigned long count, DOMString data);
    2828};
    2929
Note: See TracChangeset for help on using the changeset viewer.