Skip to content

Typo in axe extension for Rule ID: list #3559

@KB55

Description

@KB55

Product: axe Extension
Expectation: Correctly describe how to fix the issue
Actual: Typo in the text
Motivation: The typo has caused confusion and caused developers to look in the wrong place for the error

Extension version: v4.32.0
axe-core version: v4.4.2
Chrome browser version 103.0.5060.134 (Official Build) (64-bit)

In the axe extension an error has been identified for:

Rule ID: list
Ruleset: axe-core 4.4
<ul> and <ol> must only directly contain <li>, <script> or <template> elements

The issue was triggered because a <span> was nested within a <ul>. The extension says:

Fix the following: List element has direct children that are not allowed inside <li> elements

I believe this is a typo and that it should say:

List element has direct children that are not allowed inside <ul> elements

The rule is concerned with errors due to incorrect direct children of <ul> and <ol> elements, not <li> elements and therefore this fix shown in the extension is misleading.

Screenshots attached:

  • Axe issue
  • Axe issue description
  • Code for issue

AxeExtensionScreenshot
AxeIssueDescScreenshot
AxeCodeExample

Metadata

Metadata

Assignees

No one assigned

    Labels

    prA pr has been created for the issuerule metadataIssues in the rule metadata code (lib/rules)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions