LayoutTests:
authorweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 21:12:48 +0000 (21:12 +0000)
committerweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 21:12:48 +0000 (21:12 +0000)
commitb377212a7b747f5e571391dfb9b79f3432b47aae
tree12710bcba08ffd57fdf112cfe2c5eec080dcfb19
parent79358a0f2d3faf0d246ca18c727dab7f4e6dd41d
LayoutTests:

        Reviewed by Geoff.

        Testcases for http://bugs.webkit.org/show_bug.cgi?id=11777
        Crash when using XMLSerializer.serializeToString() on
        documentless, DocumentType nodes.

        * fast/dom/XMLSerializer-doctype-expected.txt: Added.
        * fast/dom/XMLSerializer-doctype.html: Added.
        * fast/dom/XMLSerializer-doctype2-expected.txt: Added.
        * fast/dom/XMLSerializer-doctype2.html: Added.

WebCore:

        Reviewed by Geoff.

        Fix for http://bugs.webkit.org/show_bug.cgi?id=11777
        Crash when using XMLSerializer.serializeToString() on
        documentless, DocumentType nodes.

        Test: fast/dom/XMLSerializer-doctype.html
        Test: fast/dom/XMLSerializer-doctype2.html

        * dom/DOMImplementation.cpp:
        (WebCore::DOMImplementation::createDocument): set the document of the
        DocumentType node to the new document.
        * xml/XMLSerializer.cpp: Cleanup.
        (WebCore::XMLSerializer::serializeToString): now throws an exception
        for documentless nodes.
        * xml/XMLSerializer.h: cleanup
        * xml/XMLSerializer.idl: add exception

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/XMLSerializer-doctype-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/XMLSerializer-doctype.html [new file with mode: 0644]
LayoutTests/fast/dom/XMLSerializer-doctype2-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/XMLSerializer-doctype2.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/DOMImplementation.cpp
WebCore/xml/XMLSerializer.cpp
WebCore/xml/XMLSerializer.h
WebCore/xml/XMLSerializer.idl