5 pre
= document
.getElementById('console');
6 txt
= document
.createTextNode(str
+ '\n')
10 if (window
.testRunner
)
11 testRunner
.dumpAsText()
13 var elem
= document
.createElementNS('http://www.example.org', 'test:p')
14 var importedNode
= document
.importNode(elem
, true)
16 if (importedNode
.prefix
!= 'test') {
17 debug('FAILURE: imported node has wrong prefix')
26 <body onload=
"runTests();">
27 This tests that an element which is cloned by using importNode keeps its prefix. If the test is successful, 'SUCCESS' will be displayed below, otherwise 'FAILURE' and a reason will be displayed.