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-setBaseAndExtent-from-end-of-video-to-child-of-video.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
"use strict";
document.addEventListener("DOMContentLoaded", () => {
document.getSelection().setBaseAndExtent(
document.querySelector("video"), 5,
document.querySelector("b"), 0
);
});
</script>
</head>
<body>
<video>
<source>
<svg></svg>
<b>
</b></video></body></html>