Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
This repository was archived by the owner on May 7, 2025. It is now read-only.

getCurrentSelectionCfi() error with following xhtml #47

Description

Thanks in advance for looking at this.
When we're using the attached xhtml file (in a zip) we're getting this error when selecting a section that starts in the first paragraph and ends in the second paragraph:
Uncaught SyntaxError: Expected "!/", "/", "[" or [0-9] but "," found.

The CFI looks like for example like this before being passed to peg$parse:
epubcfi(/4,/4/1:16,/6/1:151)

Any idea how this could be fixed? Thanks in advance!

text-1.xhtml.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions