Mutation observers doesn't get notified of character data mutation made by the parser
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Nov 2018 21:33:48 +0000 (21:33 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Nov 2018 21:33:48 +0000 (21:33 +0000)
commit8dfa5de868f08dd56e4fe31eb82ad6f22bc0473d
tree4e416846920d5bfacb275e98aba91bb084d7dd69
parentb6695a0ba7459972130bec4c93d638346d59dce9
Mutation observers doesn't get notified of character data mutation made by the parser
https://bugs.webkit.org/show_bug.cgi?id=191874

Reviewed by Antti Koivisto.

Source/WebCore:

Fixed the bug that CharacterData::parserAppendData was never notifying MutationObserver.

Test: fast/dom/MutationObserver/observe-parser-character-data-change.html

* dom/CharacterData.cpp:
(WebCore::CharacterData::parserAppendData):

LayoutTests:

Added a regression test.

* fast/dom/MutationObserver/observe-parser-character-data-change-expected.txt: Added.
* fast/dom/MutationObserver/observe-parser-character-data-change.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238429 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/MutationObserver/observe-parser-character-data-change-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/MutationObserver/observe-parser-character-data-change.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/dom/CharacterData.cpp