Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/crashtests/insert-nodes-into-meta-element.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
"use strict";
document.addEventListener("DOMContentLoaded", () => {
document.getElementById("meta").appendChild(
document.getElementById("br").parentNode.removeChild(
document.getElementById("br")
)
);
document.getElementById("meta").appendChild(
document.getElementById("ruby").cloneNode(true)
);
document.getElementById("meta").insertBefore(
document.getElementById("br"), // should be null
undefined
);
});
</script>
</head><body contenteditable="true">
<meta id="meta">
<br id="br">
<ruby id="ruby" contenteditable="false">
</ruby></body></html>