• 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
..
anchoring Loading commit data...
config Loading commit data...
highlighter Loading commit data...
plugin Loading commit data...
test Loading commit data...
util Loading commit data...
.eslintrc.js Loading commit data...
adder.html Loading commit data...
adder.js Loading commit data...
annotation-counts.js Loading commit data...
annotation-sync.js Loading commit data...
delegator.coffee Loading commit data...
features.js Loading commit data...
frame-observer.js Loading commit data...
guest.coffee Loading commit data...
host.coffee Loading commit data...
index.js Loading commit data...
pdf-sidebar.js Loading commit data...
pdfjs-rendering-states.js Loading commit data...
plugin.coffee Loading commit data...
range-util.js Loading commit data...
selections.js Loading commit data...
sidebar-trigger.js Loading commit data...
sidebar.coffee Loading commit data...