fix for <rdar://problem/4110775> Crash will occur when double-clicking outerH...
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 May 2005 01:04:52 +0000 (01:04 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 May 2005 01:04:52 +0000 (01:04 +0000)
commitd39c69868cf665989db49a9178bb5e1039882fcf
tree38c4cbe5576e60dfb7691c3fa9e5c7fe045c4780
parent116403abc73897c133a8d7a6ced9b656d31998c2
    fix for <rdar://problem/4110775> Crash will occur when double-clicking outerHTML link on W3 DOM test

        Reviewed by Darin.

        * khtml/html/html_elementimpl.cpp: (HTMLElementImpl::setOuterHTML): added nil check.
        This was causing a crash when you tried to set the outerHTML on an element that was no longer in the DOM tree.

        * layout-tests/fast/dom/outerText-no-element.html: Added. Tests case where you try to set outerText on an element no longer in the DOM tree.
        * layout-tests/fast/dom/outerText-no-element-expected.txt: Added.
        * layout-tests/fast/dynamic/outerHTML-doc.html: Added.  Tests case where someone tries to set outerHTML on the document.
        * layout-tests/fast/dynamic/outerHTML-doc-expected.txt: Added..
        * layout-tests/fast/dynamic/outerHTML-no-element.html: Added. Tests case where you try to set outerHTML on an element no longer in the DOM tree.
        * layout-tests/fast/dynamic/outerHTML-no-element-expected.txt: Added.
        * layout-tests/fast/dynamic/outerHTML-img.html: moved images to resources directory
        * layout-tests/fast/dynamic/resources/apple.gif: Added.
        * layout-tests/fast/dynamic/resources/mozilla.gif: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9146 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/fast/dom/outerText-no-element-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/outerText-no-element.html [new file with mode: 0644]
LayoutTests/fast/dynamic/outerHTML-doc-expected.txt [new file with mode: 0644]
LayoutTests/fast/dynamic/outerHTML-doc.html [new file with mode: 0644]
LayoutTests/fast/dynamic/outerHTML-img.html
LayoutTests/fast/dynamic/outerHTML-no-element-expected.txt [new file with mode: 0644]
LayoutTests/fast/dynamic/outerHTML-no-element.html [new file with mode: 0644]
LayoutTests/fast/dynamic/resources/apple.gif [new file with mode: 0644]
LayoutTests/fast/dynamic/resources/mozilla.gif [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23
WebCore/khtml/html/html_elementimpl.cpp