[w3c/selection-api] interop: Trailing whitespace in h1/h2 is selectable in firefox, not selectable in chrome (Issue #149)

Repro case:

```
<h1>hello world </h1>

your selection:

<div id=selection />

<script>
    window.setInterval(() => {
        document.getElementById("selection").innerText = "'" + window.getSelection() + "'";
    }, 100);
</script>
```

there is trailing whitespace in "hello world". That whitespace can be selected in Firefox and is reflected in the selection API, but not in Chrome, and so it is not.

I originally opened https://github.com/whatwg/html/issues/8003, but it was suggested that this is a better place to file this issue.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/issues/149
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/selection-api/issues/149@github.com>

Received on Monday, 13 June 2022 19:02:43 UTC