LayoutTests:
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Aug 2007 17:37:24 +0000 (17:37 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Aug 2007 17:37:24 +0000 (17:37 +0000)
commit76d6e5e0d81b855b25b51ee441c31556a80b874f
treefd77d2efd1bb04218c0bd3d4c15df5e699a4bbe6
parent81082a7fbe63c0563e921517621083505b5dc134
LayoutTests:

        Reviewed by Darin.

        Test for <rdar://problem/5391576>
        Malformed table innerHTML causes Safari to crash in HTMLParser::handleError (14894)

        * fast/table/incomplete-table-in-fragment-2-expected.txt: Added.
        * fast/table/incomplete-table-in-fragment-2.html: Added.

WebCore:

        Reviewed by Darin.

        Fix for <rdar://problem/5391576>
        Malformed table innerHTML causes Safari to crash in HTMLParser::handleError (14894)

        Add null checks to protect against

        e.innerHTML = "<tr>text</tr>";

        type cases. Normal assumptions about document tree structure don't hold when parsing
        fragments. Results don't match Firefox in all cases. It seems to have some sort of
        anything-goes fragment parsing mode.

        * html/HTMLParser.cpp:
        (WebCore::HTMLParser::handleError):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24936 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/table/incomplete-table-in-fragment-2-expected.txt [new file with mode: 0644]
LayoutTests/fast/table/incomplete-table-in-fragment-2.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLParser.cpp