Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/crashtests/inserthorizontalrule-to-replace-selection-containing-comment.html - WPT Dashboard Interop Dashboard
<head>
<meta charset="utf-8">
<script>
addEventListener("DOMContentLoaded", () => {
document.execCommand("selectAll");
document.designMode = "on";
document.execCommand("insertHorizontalRule");
});
</script>
</head>
<body>
<audio></audio>
<ins contenteditable>
<q dir="ltr">
<button>A</button>
<dialog dir="rtl" open>
<canvas></canvas>
<fieldset>
<!-- The following white-space is important -->
</fieldset></dialog></q></ins></body>
</html>