Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Missing DocumentOrShadowRoot interface implementation #66
Doesn't appear implement the DocumentOrShadowRoot interface - or only
I think at least some subset of the range/selection api could be implemented. It will likely be significant code and therefore, I'd imagine making it opt-in. The focus currently is on getting the core functionality of the library production ready rather than adding more advanced features.
@sorvell There is there any progress on implementing the full interface for the DocumentOrShadowRoot interface? I think the full support for it is required for any WYSIWYG editors which are based on the "contenteditable" elements.
Also note that there is an attempt to implement "shadowRoot.getSelection()" polyfill already.
I have recently done some investigation regarding
Only Chrome supports getSelection() on the Shadow Root. Neither Firefox 63 beta, nor Safari have it enabled. In Firefox 63 global API still works, Safari 10+ needs a polyfill.
There is an unofficial polyfill by one guy from Google, which only covers part of functionality:
Especially, it is not designed to emulate the whole
This issue is affects lots of WYSIWYG editors relying on
Below goes the result of testing
Firefox 63 beta
Summary: Firefox 63 beta could be using global API for now, but this might break in future
Expecting both Safari 10 and 12 versions to behave the same.
FYI I wrote a disgusting polyfill for