Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/forms/the-textarea-element/textarea-update-default-value-in-shadow-crash.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
"use strict";
const p = document.createElement("p");
document.documentElement.appendChild(p);
const shadowRoot = p.attachShadow({mode: "open"});
const textarea = document.createElement("textarea");
shadowRoot.appendChild(textarea);
textarea.defaultValue = "|";
</script>
</head>
<body></body>
</html>