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

Navigation Panel JStree non unique ids

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 15.4
    • Tree
    • None
    • Unknown
    • 4.1.1 Parsing

    Description

      WCAG warnings in the test class [org.xwiki.panels.test.ui.docker.AllIT]:
      Validation in the test method [verifyPanelCaching]
      Check for [org.xwiki.test.ui.po.ViewPage] at http://xwikiweb:8080/xwiki/bin/view/AppWithinMinutes/WebHome.
      Found [2] items
      IDs of active elements must be unique
      Description: Ensures every id attribute value of active elements is unique
      Help URL: https://dequeuniversity.com/rules/axe/4.6/duplicate-id-active?application=axeAPI
      Help: IDs of active elements must be unique
      Impact: serious
      Tags: cat.parsing, wcag2a, wcag411

      HTML element:
      <a class="jstree-anchor jstree-clicked" href="/xwiki/bin/view/AppWithinMinutes/" tabindex="-1" role="treeitem" aria-selected="true" aria-level="1" aria-expanded="false" title="App Within Minutes Application (org.xwiki.platform:xwiki-platform-appwithinminutes-ui/15.5-SNAPSHOT)" id="document:xwiki:AppWithinMinutes.WebHome_anchor">
      Selector: [.jstree-last.jstree-closed.jstree-node > .jstree-clicked.jstree-anchor[aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:AppWithinMinutes.WebHome_anchor

      IDs of active elements must be unique
      Description: Ensures every id attribute value of active elements is unique
      Help URL: https://dequeuniversity.com/rules/axe/4.6/duplicate-id-active?application=axeAPI
      Help: IDs of active elements must be unique
      Impact: serious
      Tags: cat.parsing, wcag2a, wcag411

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/AppWithinMinutes/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" aria-expanded="false" id="document:xwiki:AppWithinMinutes.WebHome_anchor">
      Selector: [.jstree-no-links > .jstree-container-ul.jstree-no-dots.jstree-no-icons > .jstree-closed.jstree-node[role="none"]:nth-child(1) > .jstree-anchor[aria-level="1"][role="treeitem"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:AppWithinMinutes.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/Panels/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" aria-expanded="true" id="document:xwiki:Panels.WebHome_anchor"><i class="jstree-icon jstree-themeicon fa fa-file-o jstree-themeicon-custom" role="presentation"></i>Panels</a>
      Selector: [.jstree-open.jstree-node[role="none"] > .jstree-anchor[href$="Panels/"][aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:Panels.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/Alice/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" id="document:xwiki:Alice.WebHome_anchor"><i class="jstree-icon jstree-themeicon fa fa-file-o jstree-themeicon-custom" role="presentation"></i>Alice</a>
      Selector: [.jstree-no-links > .jstree-container-ul.jstree-no-dots.jstree-no-icons > .jstree-leaf.jstree-node[role="none"]:nth-child(3) > .jstree-anchor[href$="Alice/"][aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:Alice.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/Attachment/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" aria-expanded="false" id="document:xwiki:Attachment.WebHome_anchor">
      Selector: [.jstree-no-links > .jstree-container-ul.jstree-no-dots.jstree-no-icons > .jstree-closed.jstree-node[role="none"]:nth-child(4) > .jstree-anchor[href$="Attachment/"][aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:Attachment.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/Bob/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" id="document:xwiki:Bob.WebHome_anchor"><i class="jstree-icon jstree-themeicon fa fa-file-o jstree-themeicon-custom" role="presentation"></i>Bob</a>
      Selector: [.jstree-no-links > .jstree-container-ul.jstree-no-dots.jstree-no-icons > .jstree-leaf.jstree-node[role="none"]:nth-child(5) > .jstree-anchor[href$="Bob/"][aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:Bob.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/Carol/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" id="document:xwiki:Carol.WebHome_anchor"><i class="jstree-icon jstree-themeicon fa fa-file-o jstree-themeicon-custom" role="presentation"></i>Carol</a>
      Selector: [.jstree-no-links > .jstree-container-ul.jstree-no-dots.jstree-no-icons > .jstree-leaf.jstree-node[role="none"]:nth-child(6) > .jstree-anchor[href$="Carol/"][aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:Carol.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/Denis/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" id="document:xwiki:Denis.WebHome_anchor"><i class="jstree-icon jstree-themeicon fa fa-file-o jstree-themeicon-custom" role="presentation"></i>Denis</a>
      Selector: [.jstree-no-links > .jstree-container-ul.jstree-no-dots.jstree-no-icons > .jstree-leaf.jstree-node[role="none"]:nth-child(7) > .jstree-anchor[href$="Denis/"][aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:Denis.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/IconThemes/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" aria-expanded="false" id="document:xwiki:IconThemes.WebHome_anchor">
      Selector: [.jstree-no-links > .jstree-container-ul.jstree-no-dots.jstree-no-icons > .jstree-closed.jstree-node[role="none"]:nth-child(8) > .jstree-anchor[href$="IconThemes/"][aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:IconThemes.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/IconThemesCode/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" aria-expanded="false" id="document:xwiki:IconThemesCode.WebHome_anchor">
      Selector: [.jstree-no-links > .jstree-container-ul.jstree-no-dots.jstree-no-icons > .jstree-closed.jstree-node[role="none"]:nth-child(9) > .jstree-anchor[aria-level="1"][role="treeitem"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:IconThemesCode.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/Index/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" aria-expanded="false" id="document:xwiki:Index.WebHome_anchor"><i class="jstree-icon jstree-themeicon fa fa-file-o jstree-themeicon-custom" role="presentation"></i>Index</a>
      Selector: [.jstree-no-links > .jstree-container-ul.jstree-no-dots.jstree-no-icons > .jstree-closed.jstree-node[role="none"]:nth-child(10) > .jstree-anchor[href$="Index/"][aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:Index.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/Macros/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" aria-expanded="false" id="document:xwiki:Macros.WebHome_anchor"><i class="jstree-icon jstree-themeicon fa fa-file-o jstree-themeicon-custom" role="presentation"></i>Macros</a>
      Selector: [.jstree-no-links > .jstree-container-ul.jstree-no-dots.jstree-no-icons > .jstree-closed.jstree-node[role="none"]:nth-child(11) > .jstree-anchor[href$="Macros/"][aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:Macros.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/Mail/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" aria-expanded="false" id="document:xwiki:Mail.WebHome_anchor"><i class="jstree-icon jstree-themeicon fa fa-file-o jstree-themeicon-custom" role="presentation"></i>Mail</a>
      Selector: [.jstree-no-links > .jstree-container-ul.jstree-no-dots.jstree-no-icons > .jstree-closed.jstree-node[role="none"]:nth-child(12) > .jstree-anchor[href$="Mail/"][aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:Mail.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/Main/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" aria-expanded="false" id="document:xwiki:Main.WebHome_anchor"><i class="jstree-icon jstree-themeicon fa fa-file-o jstree-themeicon-custom" role="presentation"></i>Main</a>
      Selector: [.jstree-no-links > .jstree-container-ul.jstree-no-dots.jstree-no-icons > .jstree-closed.jstree-node[role="none"]:nth-child(13) > .jstree-anchor[href$="Main/"][aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:Main.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/PanelsCode/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" aria-expanded="false" id="document:xwiki:PanelsCode.WebHome_anchor">
      Selector: [.jstree-no-links > .jstree-container-ul.jstree-no-dots.jstree-no-icons > .jstree-closed.jstree-node[role="none"]:nth-child(14) > .jstree-anchor[href$="PanelsCode/"][aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:PanelsCode.WebHome_anchor

      HTML element:
      <a class="jstree-anchor" href="/xwiki/bin/view/XWiki/" tabindex="-1" role="treeitem" aria-selected="false" aria-level="1" aria-expanded="false" id="document:xwiki:XWiki.WebHome_anchor"><i class="jstree-icon jstree-themeicon fa fa-file-o jstree-themeicon-custom" role="presentation"></i>XWiki</a>
      Selector: [.jstree-last.jstree-closed.jstree-node > .jstree-anchor[href$="XWiki/"][aria-level="1"]]
      Fix any of the following:
      Document has active elements with the same id attribute: document:xwiki:XWiki.WebHome_anchor

      This happens when there are two JSTrees on the same page, typically when a user can export as XAR, and a navigation panel is displayed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Lucas C Charpentier Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: