w3c / selection-api

Selection API
http://w3c.github.io/selection-api/
Other
47 stars 30 forks source link

Add getComposedRange to Selection #98

Closed rniwa closed 1 year ago

rniwa commented 6 years ago

Per https://github.com/w3c/webcomponents/issues/79, we should add getComposedRange which takes a sequence of ShadowRoot to Selection and return a StaticRange.

rniwa commented 2 years ago

I think probably prioritize this over other issues since not being able to use selection is a major roadblock for shadow DOM users as far as I know.

rniwa commented 1 year ago

@smaug---- @annevk could you take a look at https://w3c.github.io/selection-api/#dom-selection-getcomposedrange and see if it makes sense?

annevk commented 1 year ago

Filed https://github.com/w3c/selection-api/issues/161.