ASSERTION FAILED: !attached() in Node::attach.
authorinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Apr 2012 03:41:56 +0000 (03:41 +0000)
committerinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Apr 2012 03:41:56 +0000 (03:41 +0000)
commit11c686738d48523b167135acb08fbe021fb05d89
treeb69af71ada3b78538e6e699fc27b7ce77871b16e
parent66a7bb424027aae1a029d331ec15f18a206f129b
ASSERTION FAILED: !attached() in Node::attach.
https://bugs.webkit.org/show_bug.cgi?id=80726

Reviewed by Adam Barth.

Source/WebCore:

While parsing XML document, prevent attaching the leaf text node
back to document, if its parent is not attached.

Test: fast/dom/text-node-attach-crash.xhtml

* xml/parser/XMLDocumentParser.cpp:
(WebCore::XMLDocumentParser::exitText):

LayoutTests:

* fast/dom/text-node-attach-crash-expected.txt: Added.
* fast/dom/text-node-attach-crash.xhtml: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/text-node-attach-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/text-node-attach-crash.xhtml [new file with mode: 0755]
Source/WebCore/ChangeLog
Source/WebCore/xml/parser/XMLDocumentParser.cpp