• Kyle Keating's avatar
    Add nodeFromXPath to range-js and refactor tests · 1cc4e1ca
    Kyle Keating authored
    - Refactor `range-js-test` and remove specific testing of internal functions such as `findChild` and `nodeFromXPathFallback`.
    
    - `nodeFromXPath` ported code does not contain any code path for XML handling as the coffeescript previously did. This code was however previously untested and difficult to reproduce in practice. It was likely was never or rarely used and is over 6 years old.
    1cc4e1ca
range-js.js 2.04 KB