OLD | NEW |
1 createAttirbuteNS tests adapted from createElementNS tests attached to webkit bu
g 16833 | 1 createAttirbuteNS tests adapted from createElementNS tests attached to webkit bu
g 16833 |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS createAttributeNS(undefined, undefined) | 6 PASS createAttributeNS(undefined, undefined) |
7 PASS createAttributeNS(null, undefined) | 7 PASS createAttributeNS(null, undefined) |
8 PASS createAttributeNS(undefined, null) | 8 PASS createAttributeNS(undefined, null) |
9 PASS createAttributeNS(null, null) | 9 PASS createAttributeNS(null, null) |
10 PASS createAttributeNS(null, ""); threw InvalidCharacterError: Failed to execute
'createAttributeNS' on 'Document': The qualified name provided is empty. | 10 PASS createAttributeNS(null, ""); threw InvalidCharacterError: Failed to execute
'createAttributeNS' on 'Document': The qualified name provided is empty. |
11 PASS createAttributeNS("", null) | 11 PASS createAttributeNS("", null) |
12 PASS createAttributeNS("", ""); threw InvalidCharacterError: Failed to execute '
createAttributeNS' on 'Document': The qualified name provided is empty. | 12 PASS createAttributeNS("", ""); threw InvalidCharacterError: Failed to execute '
createAttributeNS' on 'Document': The qualified name provided is empty. |
13 PASS createAttributeNS(null, "<div>"); threw InvalidCharacterError: Failed to ex
ecute 'createAttributeNS' on 'Document': The qualified name provided ('<div>') c
ontains the invalid name-start character '<'. | 13 PASS createAttributeNS(null, "<div>"); threw InvalidCharacterError: Failed to ex
ecute 'createAttributeNS' on 'Document': The qualified name provided ('<div>') c
ontains the invalid name-start character '<'. |
14 PASS createAttributeNS(null, "0div"); threw InvalidCharacterError: Failed to exe
cute 'createAttributeNS' on 'Document': The qualified name provided ('0div') con
tains the invalid name-start character '0'. | 14 PASS createAttributeNS(null, "0div"); threw InvalidCharacterError: Failed to exe
cute 'createAttributeNS' on 'Document': The qualified name provided ('0div') con
tains the invalid name-start character '0'. |
15 PASS createAttributeNS(null, "di v"); threw InvalidCharacterError: Failed to exe
cute 'createAttributeNS' on 'Document': The qualified name provided ('di v') con
tains the invalid character ' '. | 15 PASS createAttributeNS(null, "di v"); threw InvalidCharacterError: Failed to exe
cute 'createAttributeNS' on 'Document': The qualified name provided ('di v') con
tains the invalid character ' '. |
16 PASS createAttributeNS(null, "di<v"); threw InvalidCharacterError: Failed to exe
cute 'createAttributeNS' on 'Document': The qualified name provided ('di<v') con
tains the invalid character '<'. | 16 PASS createAttributeNS(null, "di<v"); threw InvalidCharacterError: Failed to exe
cute 'createAttributeNS' on 'Document': The qualified name provided ('di<v') con
tains the invalid character '<'. |
17 PASS createAttributeNS(null, "-div"); threw InvalidCharacterError: Failed to exe
cute 'createAttributeNS' on 'Document': The qualified name provided ('-div') con
tains the invalid name-start character '-'. | 17 PASS createAttributeNS(null, "-div"); threw InvalidCharacterError: Failed to exe
cute 'createAttributeNS' on 'Document': The qualified name provided ('-div') con
tains the invalid name-start character '-'. |
18 PASS createAttributeNS(null, ".div"); threw InvalidCharacterError: Failed to exe
cute 'createAttributeNS' on 'Document': The qualified name provided ('.div') con
tains the invalid name-start character '.'. | 18 PASS createAttributeNS(null, ".div"); threw InvalidCharacterError: Failed to exe
cute 'createAttributeNS' on 'Document': The qualified name provided ('.div') con
tains the invalid name-start character '.'. |
19 PASS createAttributeNS("http://example.com/", "<div>"); threw InvalidCharacterEr
ror: Failed to execute 'createAttributeNS' on 'Document': The qualified name pro
vided ('<div>') contains the invalid name-start character '<'. | 19 PASS createAttributeNS("http://example.com/", "<div>"); threw InvalidCharacterEr
ror: Failed to execute 'createAttributeNS' on 'Document': The qualified name pro
vided ('<div>') contains the invalid name-start character '<'. |
20 PASS createAttributeNS("http://example.com/", "0div"); threw InvalidCharacterErr
or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov
ided ('0div') contains the invalid name-start character '0'. | 20 PASS createAttributeNS("http://example.com/", "0div"); threw InvalidCharacterErr
or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov
ided ('0div') contains the invalid name-start character '0'. |
21 PASS createAttributeNS("http://example.com/", "di<v"); threw InvalidCharacterErr
or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov
ided ('di<v') contains the invalid character '<'. | 21 PASS createAttributeNS("http://example.com/", "di<v"); threw InvalidCharacterErr
or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov
ided ('di<v') contains the invalid character '<'. |
22 PASS createAttributeNS("http://example.com/", "-div"); threw InvalidCharacterErr
or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov
ided ('-div') contains the invalid name-start character '-'. | 22 PASS createAttributeNS("http://example.com/", "-div"); threw InvalidCharacterErr
or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov
ided ('-div') contains the invalid name-start character '-'. |
23 PASS createAttributeNS("http://example.com/", ".div"); threw InvalidCharacterErr
or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov
ided ('.div') contains the invalid name-start character '.'. | 23 PASS createAttributeNS("http://example.com/", ".div"); threw InvalidCharacterErr
or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov
ided ('.div') contains the invalid name-start character '.'. |
24 PASS createAttributeNS(null, ":div"); threw NamespaceError: Failed to execute 'c
reateAttributeNS' on 'Document': The qualified name provided (':div') has an emp
ty namespace prefix. | 24 PASS createAttributeNS(null, ":div"); threw InvalidCharacterError: Failed to exe
cute 'createAttributeNS' on 'Document': The qualified name provided (':div') has
an empty namespace prefix. |
25 PASS createAttributeNS(null, "div:"); threw NamespaceError: Failed to execute 'c
reateAttributeNS' on 'Document': The qualified name provided ('div:') has an emp
ty local name. | 25 PASS createAttributeNS(null, "div:"); threw InvalidCharacterError: Failed to exe
cute 'createAttributeNS' on 'Document': The qualified name provided ('div:') has
an empty local name. |
26 PASS createAttributeNS("http://example.com/", ":div"); threw NamespaceError: Fai
led to execute 'createAttributeNS' on 'Document': The qualified name provided ('
:div') has an empty namespace prefix. | 26 PASS createAttributeNS("http://example.com/", ":div"); threw InvalidCharacterErr
or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov
ided (':div') has an empty namespace prefix. |
27 PASS createAttributeNS("http://example.com/", "div:"); threw NamespaceError: Fai
led to execute 'createAttributeNS' on 'Document': The qualified name provided ('
div:') has an empty local name. | 27 PASS createAttributeNS("http://example.com/", "div:"); threw InvalidCharacterErr
or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov
ided ('div:') has an empty local name. |
28 PASS createAttributeNS(null, "d:iv"); threw NamespaceError: Failed to execute 'c
reateAttributeNS' on 'Document': The namespace URI provided ('') is not valid fo
r the qualified name provided ('d:iv'). | 28 PASS createAttributeNS(null, "d:iv"); threw NamespaceError: Failed to execute 'c
reateAttributeNS' on 'Document': The namespace URI provided ('') is not valid fo
r the qualified name provided ('d:iv'). |
29 PASS createAttributeNS(null, "a:b:c"); valid XML name, invalid QName; threw Name
spaceError: Failed to execute 'createAttributeNS' on 'Document': The qualified n
ame provided ('a:b:c') contains multiple colons. | 29 PASS createAttributeNS(null, "a:b:c"); valid XML name, invalid QName; threw Inva
lidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qual
ified name provided ('a:b:c') contains multiple colons. |
30 PASS createAttributeNS("http://example.com/", "a:b:c"); valid XML name, invalid
QName; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document'
: The qualified name provided ('a:b:c') contains multiple colons. | 30 PASS createAttributeNS("http://example.com/", "a:b:c"); valid XML name, invalid
QName; threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Do
cument': The qualified name provided ('a:b:c') contains multiple colons. |
31 PASS createAttributeNS(null, "a::c"); valid XML name, invalid QName; threw Names
paceError: Failed to execute 'createAttributeNS' on 'Document': The qualified na
me provided ('a::c') contains multiple colons. | 31 PASS createAttributeNS(null, "a::c"); valid XML name, invalid QName; threw Inval
idCharacterError: Failed to execute 'createAttributeNS' on 'Document': The quali
fied name provided ('a::c') contains multiple colons. |
32 PASS createAttributeNS("http://example.com/", "a::c"); valid XML name, invalid Q
Name; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document':
The qualified name provided ('a::c') contains multiple colons. | 32 PASS createAttributeNS("http://example.com/", "a::c"); valid XML name, invalid Q
Name; threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Doc
ument': The qualified name provided ('a::c') contains multiple colons. |
33 PASS createAttributeNS("http://example.com/", "a:0"); valid XML name, not a vali
d QName; threw InvalidCharacterError: Failed to execute 'createAttributeNS' on '
Document': The qualified name provided ('a:0') contains the invalid name-start c
haracter '0'. | 33 PASS createAttributeNS("http://example.com/", "a:0"); valid XML name, not a vali
d QName; threw InvalidCharacterError: Failed to execute 'createAttributeNS' on '
Document': The qualified name provided ('a:0') contains the invalid name-start c
haracter '0'. |
34 PASS createAttributeNS("http://example.com/", "0:a"); 0 at start makes it not a
valid XML name; threw InvalidCharacterError: Failed to execute 'createAttributeN
S' on 'Document': The qualified name provided ('0:a') contains the invalid name-
start character '0'. | 34 PASS createAttributeNS("http://example.com/", "0:a"); 0 at start makes it not a
valid XML name; threw InvalidCharacterError: Failed to execute 'createAttributeN
S' on 'Document': The qualified name provided ('0:a') contains the invalid name-
start character '0'. |
35 PASS createAttributeNS("http://example.com/", "a:_") | 35 PASS createAttributeNS("http://example.com/", "a:_") |
36 FAIL createAttributeNS("http://example.com/", "a:ெ"); non-ASCII character after
colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at
start of NCName (but still a valid XML name, hence not INVALID_CHARACTER_ERR);
expected NAMESPACE_ERR, threw INVALID_CHARACTER_ERR | 36 FAIL createAttributeNS("http://example.com/", "a:ெ"); non-ASCII character after
colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at
start of NCName (but still a valid XML name, hence not INVALID_CHARACTER_ERR);
expected NAMESPACE_ERR, threw INVALID_CHARACTER_ERR |
37 PASS createAttributeNS("http://example.com/", "ெ:a"); non-ASCII character after
colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at
start of NCName (Gecko chooses to throw NAMESPACE_ERR here, but either is valid
as this is both an invalid XML name and an invalid QName); threw InvalidCharact
erError: Failed to execute 'createAttributeNS' on 'Document': The qualified name
provided ('ெ:a') contains the invalid name-start character 'ெ'. | 37 PASS createAttributeNS("http://example.com/", "ெ:a"); non-ASCII character after
colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at
start of NCName (Gecko chooses to throw NAMESPACE_ERR here, but either is valid
as this is both an invalid XML name and an invalid QName); threw InvalidCharact
erError: Failed to execute 'createAttributeNS' on 'Document': The qualified name
provided ('ெ:a') contains the invalid name-start character 'ெ'. |
38 PASS createAttributeNS("http://example.com/", "a:aெ") | 38 PASS createAttributeNS("http://example.com/", "a:aெ") |
39 PASS createAttributeNS("http://example.com/", "aெ:a") | 39 PASS createAttributeNS("http://example.com/", "aெ:a") |
40 PASS createAttributeNS("http://example.com/", "xml:test"); binding xml prefix wr
ong; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document':
The namespace URI provided ('http://example.com/') is not valid for the qualifie
d name provided ('xml:test'). | 40 PASS createAttributeNS("http://example.com/", "xml:test"); binding xml prefix wr
ong; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document':
The namespace URI provided ('http://example.com/') is not valid for the qualifie
d name provided ('xml:test'). |
41 PASS createAttributeNS("http://example.com/", "xmlns:test"); binding xmlns prefi
x wrong; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Documen
t': The namespace URI provided ('http://example.com/') is not valid for the qual
ified name provided ('xmlns:test'). | 41 PASS createAttributeNS("http://example.com/", "xmlns:test"); binding xmlns prefi
x wrong; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Documen
t': The namespace URI provided ('http://example.com/') is not valid for the qual
ified name provided ('xmlns:test'). |
42 PASS createAttributeNS("http://www.w3.org/2000/xmlns/", "x:test"); binding names
pace namespace to wrong prefix; threw NamespaceError: Failed to execute 'createA
ttributeNS' on 'Document': The namespace URI provided ('http://www.w3.org/2000/x
mlns/') is not valid for the qualified name provided ('x:test'). | 42 PASS createAttributeNS("http://www.w3.org/2000/xmlns/", "x:test"); binding names
pace namespace to wrong prefix; threw NamespaceError: Failed to execute 'createA
ttributeNS' on 'Document': The namespace URI provided ('http://www.w3.org/2000/x
mlns/') is not valid for the qualified name provided ('x:test'). |
43 PASS createAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:test") | 43 PASS createAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:test") |
44 PASS createAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:test") | 44 PASS createAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:test") |
45 PASS createAttributeNS("http://www.w3.org/XML/1998/namespace", "x:test") | 45 PASS createAttributeNS("http://www.w3.org/XML/1998/namespace", "x:test") |
46 PASS createAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns") | 46 PASS createAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns") |
47 PASS createAttributeNS("http://example.com/", "xmlns"); threw NamespaceError: Fa
iled to execute 'createAttributeNS' on 'Document': The namespace URI provided ('
http://example.com/') is not valid for the qualified name provided ('xmlns'). | 47 PASS createAttributeNS("http://example.com/", "xmlns"); threw NamespaceError: Fa
iled to execute 'createAttributeNS' on 'Document': The namespace URI provided ('
http://example.com/') is not valid for the qualified name provided ('xmlns'). |
48 PASS successfullyParsed is true | 48 PASS successfullyParsed is true |
49 | 49 |
50 TEST COMPLETE | 50 TEST COMPLETE |
51 | 51 |
OLD | NEW |