object using aria-labelledby as text alternative incorrectly flagged as error · Issue #159 · squizlabs/HTML_CodeSniffer · GitHub
Skip to content

object using aria-labelledby as text alternative incorrectly flagged as error #159

Description

@robfentress

An object that is given alternate text using aria-labelledby is incorrectly flagged as an error. This is the code that threw the error:

<p><object data="x.jpg" aria-labelledby="monkey"></object></p>
<div id="monkey">My monkey</div>

The error given is:

Object elements must contain a text alternative after all other alternatives are exhausted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions