Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/crashtests/justifyfull-before-textarea-and-non-editable-invisible-br.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
"use strict";
document.addEventListener("DOMContentLoaded", () => {
const dialog = document.querySelector("dialog");
dialog.close();
dialog.show();
getSelection().collapse(dialog, 1); // After the <hr>
document.execCommand("justifyFull");
}, {once: true});
</script>
</head>
<body>
<dialog open contenteditable><hr><textarea>
</textarea>
<br contenteditable="false">