Changeset 216474 in webkit
- Timestamp:
- May 8, 2017 7:46:26 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r216472 r216474 1 2017-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 1 22 2017-05-08 Jeremy Jones <jeremyj@apple.com> 2 23 -
trunk/Source/WebCore/dom/CharacterData.idl
r216339 r216474 19 19 20 20 interface CharacterData : Node { 21 [CEReactions] attribute [TreatNullAs=EmptyString] DOMString data; // FIXME: Not marked as [CEReactions] in the spec.21 attribute [TreatNullAs=EmptyString] DOMString data; 22 22 readonly attribute unsigned long length; 23 23 [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); 28 28 }; 29 29
Note: See TracChangeset
for help on using the changeset viewer.