LayoutTests:
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Apr 2006 07:33:04 +0000 (07:33 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Apr 2006 07:33:04 +0000 (07:33 +0000)
commit433d516432b4a60ba8ebf2bf8d33895cd7133637
tree28e3a5df52678ca92337902dfa5c9edfe15571b0
parentbb1b3e1a60570e882bb8f320062d8b966341da79
LayoutTests:

        - Layout test for whether the error event bubbles.

        * fast/events/onerror-bubbling-expected.txt: Added.
        * fast/events/onerror-bubbling.html: Added.

WebCore:

        Reviewed by John.

        - Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=8509
        javascript:document.importNode(null)

        * dom/Document.cpp:
        (WebCore::Document::importNode): Throw an error if the node is null.
        This happens when the object provided in the JavaScript call is not
        a node.
        (WebCore::Document::adoptNode): Set the DOM exception code in all error
        cases instead of just a few, because that's what the spec requires.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/importNode-null-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/importNode-null.html [new file with mode: 0644]
LayoutTests/fast/events/onerror-bubbling-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/onerror-bubbling.html [new file with mode: 0644]
LayoutTests/fast/events/onsubmit-bubbling-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/onsubmit-bubbling.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Document.cpp
WebCore/html/HTMLElement.cpp
WebCore/html/HTMLFormElement.cpp
WebCore/html/HTMLTokenizer.cpp
WebCore/html/html_headimpl.cpp
WebCore/html/html_imageimpl.cpp