Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25907

Two Live Data tables without an id on the same page share the same description

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 16.0.0-rc-1
    • Live Data
    • Reproduced on XWiki 18.10.0-rc-1 (Jetty HSQLDB distribution) with Chrome.
    • Unknown
    • 1.3.1 Info and Relationships

    Description

      Steps to reproduce

      1. Create a page with two liveData macros, each with a different description and no id.
      2. View the page and inspect the two tables.

      Expected results

      Each table is described by its own description, for screen reader users too.

      Actual results

      Both description elements get the id undefined-description, and both tables reference that id in aria-describedby. A screen reader announces the first table's description for the second table too.

      The Records macro is not affected, since it always sets an id.

      The red panel lists the relevant DOM, read from the page: both descriptions share one id, so both tables resolve to the first description.

      Attachments

        1. g12.png
          140 kB
          Manuel Leduc

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: