OLD | NEW |
(Empty) | |
| 1 Test that calling createElementNS() throws an error when http://www.w3.org/TR/do
m/#dom-document-createelementns says it should. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS document.createElementNS(null, 'foo:bar', 'baz') threw exception NamespaceE
rror: Failed to execute 'createElementNS' on 'Document': The namespace URI provi
ded ('') is not valid for the qualified name provided ('foo:bar').. |
| 7 PASS document.createElementNS('http://www.w3.org/XML/1998/namespace', 'xml:abc',
'foo') did not throw exception. |
| 8 PASS document.createElementNS('http://www.w3.org/not-XML/1998/namespace', 'xml:a
bc', 'foo') threw exception NamespaceError: Failed to execute 'createElementNS'
on 'Document': The namespace URI provided ('http://www.w3.org/not-XML/1998/names
pace') is not valid for the qualified name provided ('xml:abc').. |
| 9 PASS document.createElementNS('http://www.w3.org/2000/xmlns/', 'xmlns', 'http://
wwww.example.org') did not throw exception. |
| 10 PASS document.createElementNS('http://www.w3.org/2000/not-xmlns/', 'xmlns', 'htt
p://wwww.example.org') threw exception NamespaceError: Failed to execute 'create
ElementNS' on 'Document': The namespace URI provided ('http://www.w3.org/2000/no
t-xmlns/') is not valid for the qualified name provided ('xmlns').. |
| 11 PASS document.createElementNS('http://www.w3.org/2000/xmlns/', 'xmlns:abc', 'htt
p://wwww.example.org') did not throw exception. |
| 12 PASS document.createElementNS('http://www.w3.org/2000/not-xmlns/', 'xmlns:abc',
'http://wwww.example.org') threw exception NamespaceError: Failed to execute 'cr
eateElementNS' on 'Document': The namespace URI provided ('http://www.w3.org/200
0/not-xmlns/') is not valid for the qualified name provided ('xmlns:abc').. |
| 13 PASS document.createElementNS('http://www.w3.org/2000/xmlns/', 'badprefix:xmlns'
, 'http://wwww.example.org') threw exception NamespaceError: Failed to execute '
createElementNS' on 'Document': The namespace URI provided ('http://www.w3.org/2
000/xmlns/') is not valid for the qualified name provided ('badprefix:xmlns').. |
| 14 PASS document.createElementNS('http://www.w3.org/2000/xmlns/', 'notxmlns', 'http
://wwww.example.org') threw exception NamespaceError: Failed to execute 'createE
lementNS' on 'Document': The namespace URI provided ('http://www.w3.org/2000/xml
ns/') is not valid for the qualified name provided ('notxmlns').. |
| 15 PASS successfullyParsed is true |
| 16 |
| 17 TEST COMPLETE |
| 18 |
OLD | NEW |