Skip to content

Accessibility: establishing association between annotations and text #233

@rsimon

Description

@rsimon

One of the nice things about the SpansRenderer implementation is that it gives us way more performance (and much less complex code) than the tedious & slow markup manipulation we did in RecogitoJS.

On the other hand, this creates an accessibility problem, because there is no direct association between the annotations and the text in the DOM.

We could, of course, add a new renderer (InlineMarkupRenderer?) that follows a similar approach as RecogitoJS. I believe we could even make it way more performant, because we now have good infrastructure in place for lazy rendering (via the SpatialTree that's kept up to date based on DOM Range bounds). But I wonder if there are simpler solutions.

For example, could we place zero-width marker SPANs into the text? This would avoid the need for dealing with complex nested and overlapping annotations. Or would this still be useless for screen readers?

Also CCing @oleksandr-danylchenko, since I suspect you have been facing similar questions?

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