• Robert Knight's avatar
    Use createNodeIterator polyfill for IE 11 compatibility · 39a2991e
    Robert Knight authored
    The `seek` function from the `dom-seek` package expects its
    `NodeIterator` argument to have a `referenceNode` property, which is
    missing in IE 11.
    
    Use the dom-node-iterator package recommended by the dom-seek README [1] to
    polyfill optional-ness of arguments to `document.createNodeIterator` and
    the missing properties on the returned `NodeIterator` object.
    
    dom-node-iterator provides several ways to use the polyfill. This commit
    uses the method that prefers the browser's native implementation if possible
    and does not pollute the global scope, which could affect JS code
    outside of the Hypothesis client.
    
    There is one other place where we use `createNodeIterator` but in that
    context the missing properties are not used so the polyfill is not
    needed.
    
    Fixes #762
    
    [1] https://github.com/tilgovi/dom-seek/blob/master/README.md
    39a2991e
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...
vendor 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...