timdown / rangy

A cross-browser JavaScript range and selection library.
MIT License
2.24k stars 368 forks source link

Selections within Shadow DOM #307

Open apexskier opened 9 years ago

apexskier commented 9 years ago

Has anyone been successful saving/restoring/highlighting selections within a shadow DOM node?

I've been having issues due to the fact that selections do not cross the shadow boundary, as specified in the w3 spec. My current attempts have involved modifying the window object Rangy uses to the shadow root, but I'm still having a lot of issues with the highlighting module.

timdown commented 9 years ago

I haven't tried Rangy with shadow DOM yet. I intend to do so as soon as I can.

hewenguang commented 2 years ago

any update ?