Skip to content
  • Calixte Denizet's avatar
    f3163001
    [Annotations] Add some aria-owns in the text layer to link to annotations (bug 1780375) · f3163001
    Calixte Denizet authored
    This patch doesn't structurally change the text layer: it just adds some aria-owns
    attributes to some spans.
    The aria-owns attribute expect to have an element id, hence it's why it adds back an
    id on the element rendering an annotation, but this id is built in using crypto.randomUUID
    to avoid any potential issues with the hash in the url.
    The elements in the annotation layer are moved into the DOM in order to have them in the
    same "order" as they visually are.
    The overall goal is to help screen readers to present to the user the annotations as
    they visually are and as they come in the text flow.
    It is clearly not perfect, but it should improve readability for some people with visual
    disabilities.
    f3163001
    [Annotations] Add some aria-owns in the text layer to link to annotations (bug 1780375)
    Calixte Denizet authored
    This patch doesn't structurally change the text layer: it just adds some aria-owns
    attributes to some spans.
    The aria-owns attribute expect to have an element id, hence it's why it adds back an
    id on the element rendering an annotation, but this id is built in using crypto.randomUUID
    to avoid any potential issues with the hash in the url.
    The elements in the annotation layer are moved into the DOM in order to have them in the
    same "order" as they visually are.
    The overall goal is to help screen readers to present to the user the annotations as
    they visually are and as they come in the text flow.
    It is clearly not perfect, but it should improve readability for some people with visual
    disabilities.
Loading