• Robert Knight's avatar
    Add a new implementation of text position => Range conversion · 07773973
    Robert Knight authored
    Add a new implementation of conversion from text positions (that is,
    offsets within an element's `textContent`) to DOM `Range`s along with
    test cases.
    
    This addresses an issue with the existing implementation of `toRange` in
    the `dom-anchor-text-position` package where conversion fails when the
    text position includes the end of the element's text.
    
    Even if/when the issue is addressed upstream, I think it would be useful
    to retain these test cases to guard against future regressions.
    
    See #1329
    07773973
Name
Last commit
Last update
..
html-baselines Loading commit data...
fake-pdf-viewer-application.js Loading commit data...
html-anchoring-fixture.html Loading commit data...
html-test.js Loading commit data...
pdf-test.js Loading commit data...
text-position-test.js Loading commit data...
types-test.js Loading commit data...