• Robert Knight's avatar
    Compare annotation locations by CFI and text position · 1f6ea342
    Robert Knight authored
    For annotations on EPUBs, text position selectors can only be validly compared
    when they come from annotations made on the same EPUB Content Document. For
    annotations that come from different content documents, it is necessary to first
    compare the ordering of the content documents using CFIs, and then compare text
    positions.
    
    The use of `Number.POSITIVE_INFINITY` with replaced with
    `Number.MAX_SAFE_INTEGER` when handling annotations without positions, as
    `Math.sign(MAX_SAFE_INTEGER - MAX_SAFE_INTEGER)` is 0 (ie. treat two annotations
    with missing positions as having the same position), but
    `Math.sign(POSITIVE_INFINITY - POSITIVE_INFINITY)` is NaN.
    1f6ea342
Name
Last commit
Last update
..
test Loading commit data...
account-id.js Loading commit data...
annotation-metadata.js Loading commit data...
annotation-sharing.js Loading commit data...
annotation-user.js Loading commit data...
build-thread.js Loading commit data...
group-list-item-common.js Loading commit data...
group-organizations.js Loading commit data...
groups.js Loading commit data...
is-third-party-service.js Loading commit data...
permissions.js Loading commit data...
session.js Loading commit data...
tabs.js Loading commit data...
theme.js Loading commit data...
thread-annotations.js Loading commit data...
thread-sorters.js Loading commit data...
thread.js Loading commit data...
version-data.js Loading commit data...
view-filter.js Loading commit data...
visible-threads.js Loading commit data...