• Robert Knight's avatar
    Only create one highlight element for adjacent text nodes · 2fa1ee4c
    Robert Knight authored
    When highlighting a run of adjacent text nodes, wrap the group of
    adjacent text nodes in a single `<hypothesis-highlight>` element rather
    than wrapping each text node separately. Adjacent text nodes may be
    created if:
    
     - A sub-range of the text is highlighted by Hypothesis, and the
       highlight is later removed, for example when switching groups.
     - The text nodes were generated programatically by JavaScript rather
       than by the browser's HTML parser
    
    For screen reader users, this reduces the number of "annotation
    start"/"annotation end" comments they will hear in this scenario. It is
    also likely to benefit other code which interacts with highlighted text.
    2fa1ee4c
Name
Last commit
Last update
..
anchoring Loading commit data...
components Loading commit data...
config Loading commit data...
plugin Loading commit data...
test Loading commit data...
util Loading commit data...
.eslintrc.js 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...
highlighter.js 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...