Reviewed by darin.
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Feb 2008 23:46:58 +0000 (23:46 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Feb 2008 23:46:58 +0000 (23:46 +0000)
commit362906f14b5873eb552b40f02ea924a143b45e01
treeaead80d82eb39b39b3619421fde0e642722aa6ea
parente7520686298650dc0b9296d76a3a75e24e3b6a07
    Reviewed by darin.

        Make createElementNS and createAttributeNS follow the (vague) DOM Core 2 spec
        by throwing exceptions for more types of invalid qualified names.
        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@29952 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