1
0
Fork 0
firefox/dom/xslt/tests/browser/file_bug1309630.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

19 lines
525 B
HTML

<script>
let styleDoc = fetch("bug1309630.sjs")
.then(response => {
if (response.ok) {
return response.text();
}
return Promise.reject();
}).then(xslt => {
let styleDoc = new DOMParser().parseFromString(xslt, "text/xml");
let originalDoc = new DOMParser().parseFromString(
"<root/>",
"text/xml"
);
let processor = new XSLTProcessor();
processor.importStylesheet(styleDoc);
processor.transformToDocument(originalDoc);
});
</script>>