Project

General

Profile

Actions

Bug #103991

open

A11y: Lit Element tree: improve aria-attributes and span/div cascading (Pagetree, Categorytree etc.)

Added by Ayke Halder 2 months ago. Updated 2 months ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2024-06-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Accessibility
Complexity:
Is Regression:
Sprint Focus:

Description

There are some minor errors in the html-structure of the Lit Element tree (Pagetree, Categorytree etc.) which can be improved.

I used https://validator.w3.org/nu/#textarea and copied the rendered HTML from the TYPO3 backend into it:

Error: Bad value for attribute aria-owns on element div: An IDREFS value must contain at least one non-whitespace character.

<div role="treeitem"  class="node"  aria-owns="" >

Error: Bad value for attribute aria-expanded on element div.

<div role="treeitem"  class="node"  aria-expanded="" >

Error: Bad value 0 for attribute aria-level on element div: Zero is not a positive integer.

<div role="treeitem"  class="node" title="uid=0 Category" aria-level="0"  data-id="0" data-tree-id="0" >

Error: Element div not allowed as child of element span in this context. (Suppressing further errors from this subtree.)

<div class="node-treeline node-treeline--last" data-origin="0"></div>
<div class="node-contentlabel">    

Contexts in which element div may be used:
Where flow content is expected.
As a child of a dl element.

Content model for element span:
Phrasing content.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #93773: Move SVG Tree to Lit ElementsClosedBenni Mack2021-03-18

Actions
Actions

Also available in: Atom PDF