• Robert Knight's avatar
    Switch type of `root` argument from `Node` to `Element` · 273f0d26
    Robert Knight authored
    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.
    273f0d26
html.js 2.77 KB