This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-6181be6f-c84c-41ca-87e0-b5382b99aada XWIKI-22746 Open

Images do not have an aria-label in the xwiki-slash dropdown for CKEditor

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-74e728bb-f4f1-4051-b2dc-83b2026539fc Charpentier Lucas created this issue on 30/Dec/24 11:38
 
Summary: Images do not have an aria-label in the xwiki-slash dropdown for CKEditor
Issue Type: cid:jira-generated-image-avatar-6181be6f-c84c-41ca-87e0-b5382b99aada Bug
Affects Versions: 16.10.2
Assignee: Unassigned
Components: CKEditor
Created: 30/Dec/24 11:38
Labels: wcag
Priority: cid:jira-generated-image-static-major-0fcac804-8a0f-4fec-81b9-f21cd8f5c431 Major
Reporter: Charpentier Lucas
Description:

Recently, we got a regression on WCAG tests. I suppose it's related to the fix in XWIKI-22516 that allowed the tests to `see` all of these elements. AFAICS, the concerned elements have been like this for a while. While this is a regression on test results, this is not a regression on user experience, hence why I do not set its priority to `regression`.

```
WCAG fails in the test class [org.xwiki.ckeditor.test.ui.AllIT]:
__________
Validation in the test method [paragraphQuickAction_en]
Check for [org.xwiki.test.ui.po.editor.WikiEditPage] at http://xwikiweb:8080/xwiki/bin/edit/NestedLocalizationIT/paragraphQuickAction_en/WebHome?form_token=SL73qJAAaHkfEyJ7g7x1Vg&editor=wysiwyg.
Found [1] items

1: Images must have alternative text
Description: Ensure <img> elements have alternative text or a role of none or presentation
Help URL: https://dequeuniversity.com/rules/axe/4.10/image-alt?application=axeAPI
Help: Images must have alternative text
Impact: critical
Tags: cat.text-alternatives, wcag2a, wcag111, section508, section508.22.a, TTv5, TT7.a, TT7.b, EN-301-549, EN-9.1.1.1, ACT

HTML element:
<img src="">
Selector: cke_141 > .ckeditor-autocomplete-item-head > .ckeditor-autocomplete-item-icon-wrapper > img[src=""]
Fix any of the following:
Element does not have an alt attribute
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
Element's default semantics were not overridden with role="none" or role="presentation"

HTML element:
<img src="">
Selector: cke_142 > .ckeditor-autocomplete-item-head > .ckeditor-autocomplete-item-icon-wrapper > img[src=""]
Fix any of the following:
Element does not have an alt attribute
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
Element's default semantics were not overridden with role="none" or role="presentation"

HTML element:
<img src="">
Selector: cke_143 > .ckeditor-autocomplete-item-head > .ckeditor-autocomplete-item-icon-wrapper > img[src=""]
Fix any of the following:
Element does not have an alt attribute
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
Element's default semantics were not overridden with role="none" or role="presentation"

```

 
 

1 update

 
cid:jira-generated-image-avatar-74e728bb-f4f1-4051-b2dc-83b2026539fc Changes by Charpentier Lucas on 30/Dec/24 11:39
 
Description: Recently, we got a regression on WCAG tests. I suppose it's related to the fix in XWIKI-22516 that allowed the tests to `see` all of these elements. AFAICS, the concerned elements have been like this for a while. While this is a regression on test results, this is not a regression on user experience, hence why I do not set its priority to `regression`.


```
WCAG fails in the test class [org.xwiki.ckeditor.test.ui.AllIT]:
__________
Validation in the test method [paragraphQuickAction_en]
Check for [org.xwiki.test.ui.po.editor.WikiEditPage] at [http://xwikiweb:8080/xwiki/bin/edit/NestedLocalizationIT/paragraphQuickAction_en/WebHome?form_token=SL73qJAAaHkfEyJ7g7x1Vg&editor=wysiwyg].
Found [1] items

1: Images must have alternative text
Description: Ensure <img> elements have alternative text or a role of none or presentation
Help URL: https://dequeuniversity.com/rules/axe/4.10/image-alt?application=axeAPI
Help: Images must have alternative text
Impact: critical
Tags: cat.text-alternatives, wcag2a, wcag111, section508, section508.22.a, TTv5, TT7.a, TT7.b, EN-301-549, EN-9.1.1.1, ACT

HTML element:
<img src="">
Selector: [#cke_141 > .ckeditor-autocomplete-item-head > .ckeditor-autocomplete-item-icon-wrapper > img[src=""]]
Fix any of the following:
  Element does not have an alt attribute
  aria-label attribute does not exist or is empty
  aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
  Element has no title attribute
  Element's default semantics were not overridden with role="none" or role="presentation"

HTML element:
<img src="">
Selector: [#cke_142 > .ckeditor-autocomplete-item-head > .ckeditor-autocomplete-item-icon-wrapper > img[src=""]]
Fix any of the following:
  Element does not have an alt attribute
  aria-label attribute does not exist or is empty
  aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
  Element has no title attribute
  Element's default semantics were not overridden with role="none" or role="presentation"

HTML element:
<img src="">
Selector: [#cke_143 > .ckeditor-autocomplete-item-head > .ckeditor-autocomplete-item-icon-wrapper > img[src=""]]
Fix any of the following:
  Element does not have an alt attribute
  aria-label attribute does not exist or is empty
  aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
  Element has no title attribute
  Element's default semantics were not overridden with role="none" or role="presentation"
[...]

```

There's about 40 of those reports in a row total.