Fix xml_name_type()

Names with a trailing colon are not qualified names.
This commit is contained in:
Anthony Ramine 2015-04-03 13:53:48 +02:00
parent 1906f835b9
commit c557736d26
5 changed files with 9 additions and 35 deletions

View file

@ -6,27 +6,18 @@
[createDocument test 41: undefined,"xmlns",null,"NAMESPACE_ERR"]
expected: FAIL
[createDocument test 52: "http://example.com/","foo:",null,"NAMESPACE_ERR"]
expected: FAIL
[createDocument test 64: "http://example.com/","xmlns",null,"NAMESPACE_ERR"]
expected: FAIL
[createDocument test 69: "http://example.com/","xmlns:foo",null,"NAMESPACE_ERR"]
expected: FAIL
[createDocument test 106: "/","foo:",null,"NAMESPACE_ERR"]
expected: FAIL
[createDocument test 108: "/","xmlns",null,"NAMESPACE_ERR"]
expected: FAIL
[createDocument test 111: "/","xmlns:foo",null,"NAMESPACE_ERR"]
expected: FAIL
[createDocument test 119: "http://www.w3.org/XML/1998/namespace","foo:",null,"NAMESPACE_ERR"]
expected: FAIL
[createDocument test 121: "http://www.w3.org/XML/1998/namespace","xmlns",null,"NAMESPACE_ERR"]
expected: FAIL
@ -36,9 +27,6 @@
[createDocument test 141: "http://www.w3.org/2000/xmlns/","foo:xmlns",null,"NAMESPACE_ERR"]
expected: FAIL
[createDocument test 148: "foo:","foo:",null,"NAMESPACE_ERR"]
expected: FAIL
[createDocument test 150: "foo:","xmlns",null,"NAMESPACE_ERR"]
expected: FAIL

View file

@ -1,5 +0,0 @@
[DOMImplementation-createDocumentType.html]
type: testharness
[createDocumentType("foo:", "", "") should throw NAMESPACE_ERR]
expected: FAIL

View file

@ -6,27 +6,18 @@
[createElementNS test 41: undefined,"xmlns","NAMESPACE_ERR"]
expected: FAIL
[createElementNS test 52: "http://example.com/","foo:","NAMESPACE_ERR"]
expected: FAIL
[createElementNS test 64: "http://example.com/","xmlns","NAMESPACE_ERR"]
expected: FAIL
[createElementNS test 69: "http://example.com/","xmlns:foo","NAMESPACE_ERR"]
expected: FAIL
[createElementNS test 106: "/","foo:","NAMESPACE_ERR"]
expected: FAIL
[createElementNS test 108: "/","xmlns","NAMESPACE_ERR"]
expected: FAIL
[createElementNS test 111: "/","xmlns:foo","NAMESPACE_ERR"]
expected: FAIL
[createElementNS test 119: "http://www.w3.org/XML/1998/namespace","foo:","NAMESPACE_ERR"]
expected: FAIL
[createElementNS test 121: "http://www.w3.org/XML/1998/namespace","xmlns","NAMESPACE_ERR"]
expected: FAIL
@ -36,9 +27,6 @@
[createElementNS test 141: "http://www.w3.org/2000/xmlns/","foo:xmlns","NAMESPACE_ERR"]
expected: FAIL
[createElementNS test 148: "foo:","foo:","NAMESPACE_ERR"]
expected: FAIL
[createElementNS test 150: "foo:","xmlns","NAMESPACE_ERR"]
expected: FAIL

View file

@ -1,8 +1,5 @@
[attributes.html]
type: testharness
[When qualifiedName does not match the QName production, an NAMESPACE_ERR exception is to be thrown.]
expected: FAIL
[Attribute with prefix in local name]
expected: FAIL