- From: Markus Unterwaditzer <notifications@github.com>
- Date: Mon, 13 Jun 2022 12:02:31 -0700
- To: w3c/selection-api <selection-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 13 June 2022 19:02:43 UTC
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