Switch type of `root` argument from `Node` to `Element`
This will be useful for switching the position selector anchoring code to use the `TextRange` class. The one place where a non-Element node was passed was from `anchoring/pdf.js`, a context where we can easily create a dummy element.
Showing
Please register or sign in to comment