This content is from importerTest.html. Its JavaScript code loads DOM elements from subDir/loadedPage.xhtml and imports them into this page by invoking Importer.importElement() and appending the returned element.
Importer.importElement() invokes document.importNode(). If this is not done you get some very strange problems. If you do use document.importNode(), it has the side effect of treating relative urls as relative to the importing document rather than the imported document. Importer.importElement() fixes this problem by using a URL object for the imported document to resolve relative urls to absolute urls before invoking document.importNode(). The absolute urls are not modified by document.importNode().
To view the loaded page directly click here.