textarea-update-default-value-in-shadow-crash.html (364B)
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <script> 6 "use strict"; 7 8 const p = document.createElement("p"); 9 document.documentElement.appendChild(p); 10 const shadowRoot = p.attachShadow({mode: "open"}); 11 const textarea = document.createElement("textarea"); 12 shadowRoot.appendChild(textarea); 13 textarea.defaultValue = "|"; 14 </script> 15 </head> 16 <body></body> 17 </html>