Skip to content

cssSelector not available for highlights in EPUBs #704

@hubertadamusinkbook

Description

@hubertadamusinkbook

We have troubles with CSS Selectors, as described in the documentation.

We are using the test-app as the baseline for tests, since it includes the highlights functionality. Any created highlight (so a Locator) returns null in response to a call of the extension value Locator.Locations.cssSelector from org.readium.r2.shared.publication.html.Locator.kt. In other words, this renders us unable to retrieve CSS Selectors from any highlight.

On a technical level, the cssSelector value retrieves the "cssSelector" key value from the otherLocations field of the Locator class. This means that otherLocations do not contain the "cssSelector" key.

We would be very grateful for guidance on how to access CSS Selectors of created highlights.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions