LayoutTests:
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Jan 2007 22:42:59 +0000 (22:42 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Jan 2007 22:42:59 +0000 (22:42 +0000)
commitf30ab246256029d9f9a11585d76d91833d62212c
tree57cb38edd1a203fc3327bd5af79f97befc9a1af0
parent25fc741bd77676124a8fef9d10c3ce953b0e638f
LayoutTests:

        Reviewed by Geoff.

        <rdar://problem/4960097>
        http://bugs.webkit.org/show_bug.cgi?id=12444
        Assertion failure in -[WebCoreFrameBridge installInFrame:]

        * fast/parser/xhtml-document-with-html-object-expected.txt: Added.
        * fast/parser/xhtml-document-with-html-object.xhtml: Added.

WebCore:

        Reviewed by Geoff.

        <rdar://problem/4960097>
        http://bugs.webkit.org/show_bug.cgi?id=12444
        Assertion failure in -[WebCoreFrameBridge installInFrame:]

        The problem was that the XML tokenizer didn't create elements with
        createdByParser set to true.

        * dom/Document.cpp:
        (WebCore::Document::createElement):
        New method which takes a QName. This is used by both the XML tokenizer and createElementNS.

        (WebCore::Document::createElementNS):
        Call new createElement method.

        * dom/XMLTokenizer.h:
        * dom/XMLTokenizer.cpp:
        (WebCore::XMLTokenizer::XMLTokenizer):
        (WebCore::XMLTokenizer::~XMLTokenizer):
        Use an OwnPtr for the pending callbacks object. Also, use String instead of StringImpl in the hash map.

        (WebCore::toString):
        (WebCore::XMLTokenizer::startElementNs):
        Call createElement.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/parser/xhtml-document-with-html-object-expected.txt [new file with mode: 0644]
LayoutTests/fast/parser/xhtml-document-with-html-object.xhtml [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Document.cpp
WebCore/dom/Document.h
WebCore/dom/XMLTokenizer.cpp
WebCore/dom/XMLTokenizer.h