CDATA sections are merged into Text nodes when normalize() is used
https://bugs.webkit.org/show_bug.cgi?id=33191
Reviewed by Dan Bernstein.
WebCore:
Test: fast/dom/Node/normalize-with-cdata.html
* dom/Node.cpp:
(WebCore::Node::normalize): Use nodeType instead of isTextNode.
LayoutTests:
* fast/dom/Node/normalize-with-cdata-expected.txt: Added.
* fast/dom/Node/normalize-with-cdata.html: Added.
* fast/dom/Node/script-tests/normalize-with-cdata.js: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52840 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6 files changed