| pre = document.getElementById('console'); |
| txt = document.createTextNode(str + '\n') |
| var elem = document.createElementNS('http://www.example.org', 'test:p') |
| var importedNode = document.importNode(elem, true) |
| if (importedNode.prefix != 'test') { |
| debug('FAILURE: imported node has wrong prefix') |
| <body onload="runTests();"> |
| 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. |