Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: dom/base/test/chrome.toml
<?xml version="1.0"?>
<!--
Check that XUL windows don't make insertAnonymousContent crash.
-->
<window title="Anonymous content in a XUL window"
<!-- test results are displayed in the html:body -->
<box>This is a test box</box>
<script type="application/javascript">
// Insert content
let testElement = document.querySelector("box");
document.insertAnonymousContent(testElement);
ok(true,
"Inserting anonymous content in a XUL document did not crash")
</script>
</window>