Skip to content

Conversation

@hiroya-uga
Copy link

Summary

Acknowledgements: This is a continuation of Mr. @romainmenke 's great pull request. [#15894]

Anchor elements without an href or specific attributes are considered placeholder elements and should not produce audit failures.

See : #15820 (comment)

Since #15894 says there are many issues to be resolved, I would like to allow at least the a element that clearly indicates that it is a placeholder.

Related Issues/PRs

Base : #15894
Fixes : #15820

@adamraine
Copy link
Contributor

Thanks for the contribution! This is a pretty specific exception IMO even if the use case is well defined.

I looked into creating a general-case solution in #16292. I can't gurantee the solution will land given some of its complexity, so if we can't justify that solution then we can circle back to creating exception cases like this.

@hiroya-uga
Copy link
Author

@adamraine Sorry for the late reply.
I hope your PR gets merged and the web standards are respected.

Thank you!

@connorjclark
Copy link
Collaborator

gonna look into landing #16292

thanks for taking a crack at this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lighthouse warns when an anchor tag is just a placeholder

3 participants