Reviewed by mjs.
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Mar 2008 09:49:58 +0000 (09:49 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Mar 2008 09:49:58 +0000 (09:49 +0000)
commit76383cf9e65cf47b7c510e68f24c1db6f40c6ff2
treea1c29f278125f067e1b30f26cdc1ddcc3840738f
parentf79e91d80b8b9784331230f4bd26971bc7167228
    Reviewed by mjs.

        Fix createElementNS to throw exceptions for invalid qualified names
        Fixes Acid3 sub-test 23
        http://bugs.webkit.org/show_bug.cgi?id=16833

        Tests: fast/dom/Document/createAttributeNS-namespace-err.html
               fast/dom/Document/createElementNS-namespace-err.html

        * dom/Document.cpp:
        (WebCore::Document::createElement):
        (WebCore::hasNamespaceError):
        (WebCore::Document::createElementNS):
        (WebCore::Document::createAttributeNS):
        * dom/Document.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@31230 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/dom/xhtml/level3/core/documentsetstricterrorchecking02-expected.txt
LayoutTests/fast/dom/Document/createAttributeNS-namespace-err-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Document/createAttributeNS-namespace-err.html [new file with mode: 0644]
LayoutTests/fast/dom/Document/createElementNS-namespace-err-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Document/createElementNS-namespace-err.html [new file with mode: 0644]
LayoutTests/fast/dom/Document/resources/TEMPLATE.html [new file with mode: 0644]
LayoutTests/fast/dom/Document/resources/createAttributeNS-namespace-err.js [new file with mode: 0644]
LayoutTests/fast/dom/Document/resources/createElementNS-namespace-err.js [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Document.cpp
WebCore/dom/Document.idl