Commit 815cef3c authored by Robert Knight's avatar Robert Knight

Correct reference to starting point for CFI resolution

Per https://idpf.org/epub/linking/cfi/#sec-path-res, a CFI refers to a
location within an EPUB's Package Document starting from the root
`<package>` element, not the `<spine>`.
parent 8d92de32
......@@ -72,7 +72,7 @@ export function stripCFIAssertions(cfi: string): string {
* The full sorting rules for CFIs are specified by https://idpf.org/epub/linking/cfi/#sec-sorting.
*
* This function currently only implements what is necessary to compare simple
* CFIs that specify a location within a book's spine, without any step
* CFIs that specify a location within an EPUB's Package Document, without any step
* indirections ("!"). These CFIs consist of a "/"-delimited sequence of numbers,
* with optional assertions in `[...]` brackets (eg. "/2/4[chapter2ref]").
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment