-
Notifications
You must be signed in to change notification settings - Fork 29
Description
If this is empty, return a new StaticRange whose start node and end node are null and whose start offset and end offset are 0.
Start/end node cannot be null. I think we use some kind of default instead, such as "the body element"?
While startNode is a node, startNode's root is a shadow root, and startNode is not a shadow-including inclusive ancestor of any of shadowRoots
It seems that if you pass in the ShadowRoot instance start node is part of, this wouldn't result in a match. Which if you made a selection inside that ShadowRoot instance doesn't seem to be what you want?
One thing I'm missing here still is WICG/webcomponents#79 (comment). As we can no longer expose the true range directly we need to deal with that duality somehow, also for existing APIs such as getRangeAt(). That will require changes to both DOM and Selection.