axe-core
axe-core copied to clipboard
Rule 'dlitem' does not match 'definition-list'
Product: axe-core 4.4.2
Rule: dlitem
Expectation:
The content under the "Why it Matters", "Rule Description", and "The Algorithm (in simple terms)" headings should reflect the guidance in definition-list (<dl> elements must only directly contain properly-ordered <dt> and <dd> groups, <script>, or <template> elements). Namely that a <dt> and <dd> must have a <dl> as an ancestor (or have a parent of a <script>, <template>, or <div> whose parent, in turn, is <dl>).
Actual: The content under the "Why it Matters" heading reads:
A definition list item must be wrapped in parent
dlelements, otherwise it will be invalid.A definition list must follow a specific hierarchy. A list is defined using the
dlelement. What follows are alternating sets ofdtandddelements, starting with thedtelement.dtelements define a term whileddelements denote a term's description. Each set ofdtelements must have a corresponding set ofddelements. Onlydtandddelements are allowed in definition list. If this hierarchy is not followed, the list will be invalid.
The content under the "Rule Description" heading reads:
Definition list items (
dtand/ordd) must be wrapped in parentdlelements to be valid. This enables screen reader users to understand the proper hierarchy of information in the list.
The content under the "The Algorithm (in simple terms)" heading reads:
Ensures that all child
ddanddtelements have adlas a parent.
Motivation: The language of rule dlitem is in conflict with the spec and axe rule definition-list. This is confusing devs. It may also be contributing to confusion with https://a11y-automation.dev/violations/valid-dl-elements/, even though it references the correct rule.
Unrelated, I filed two issues today and got an email for each one that said this:
Subject: [dequelabs/axe-core] Run failed: Auto assign axe-core integration issues to Axe API team project board - develop ( 3618f50 )
[dequelabs/axe-core] Auto assign axe-core integration issues to Axe API team project board workflow run
Auto assign axe-core integration issues to Axe API team project board: All jobs have failed
Auto assign axe-core integration issues to Axe API team project board / Auto assign axe-core integration issues to Axe API team project board Failed in 9 seconds
Agreed, these pages are out of date. Thanks for raising this Adrian.