Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /selection/crashtests/selection-extend-to-area-after-attaching-shadow-to-scrollingElement.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
"use strict";
document.addEventListener("DOMContentLoaded", () => {
document.execCommand("selectAll");
document.scrollingElement.attachShadow({mode: "open"});
getSelection().extend(document.querySelector("area"), 0);
})
</script>
</head>
<body>
<q style="user-select:none">
<area></area>
</body></html>