Re: [w3c/selection-api] Add Selection/Range methods based on anchestor element (#102)

This is supposed to handle the issue that in a `<pre>` element (or any element styled with `white-space: pre;`), `\n` and `<br/>` are handled the same. Some JavaScript tools convert between these two formats.

Creating a rich-text editor for an editing host element may add `<span>`, `<u>`, `<b>` and `<i>` elements around parts of text. Yet, the selection must be retained after such change.

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

Received on Friday, 1 March 2019 14:40:09 UTC