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

CKEditor content on inplace edit uses incorrectly aria-expanded

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.10-rc-1
    • 15.4
    • CKEditor
    • Medium
    • N/A
    • N/A
    • 4.1.2 Name, Role, Value

    Description

      The aria-expanded attribute is not authorized on elements with `role = "textbox"`.
      See the correct elements to use it on MDN Web docs https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded .

      WCAG warnings in the test class [org.xwiki.edit.test.ui.AllIT]:
      Validation in the test method [translateInplace]
      Check for [org.xwiki.edit.test.po.InplaceEditablePage] at http://xwikiweb:8080/xwiki/bin/view/NestedInplaceTranslateIT/translateInplace/?language=fr#translate.
      Found [2] items

      1: Elements must only use allowed ARIA attributes
      Description: Ensures ARIA attributes are allowed for an element's role
      Help URL: https://dequeuniversity.com/rules/axe/4.6/aria-allowed-attr?application=axeAPI
      Help: Elements must only use allowed ARIA attributes
      Impact: critical
      Tags: cat.aria, wcag2a, wcag412

      HTML element:
      <div id="xwikicontent" class="col-xs-12 cke_editable cke_editable_inline cke_contents_ltr cke_show_borders" data-sourcedocumentreference="xwiki:NestedInplaceTranslateIT.translateInplace.WebHome" data-syntax="xwiki/2.1" style="position: relative;" contenteditable="true" aria-readonly="false" tabindex="0" spellcheck="true" role="textbox" aria-multiline="true" aria-label="Editor, xwikicontent" title="Editor, xwikicontent" aria-describedby="cke_55" aria-controls="cke_60" aria-activedescendant="" aria-autocomplete="list" aria-expanded="false">
      Selector: xwikicontent
      Fix any of the following:
      ARIA attribute is not allowed: aria-expanded="false"

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: