Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: allow placeholder anchor elements #16292

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

adamraine
Copy link
Member

@adamraine adamraine commented Dec 19, 2024

Also building on #15894 and #16287. This should solve the general case for anchor elements where placeholder <a> elements are allowed, but not if they have an event listener.

We may want to limit the failing case to just click/mousedown/etc event listeners though. Presumably we should allow parent elements to have non-click related event listeners without failing the anchor below.

Fixes #15820

@adamraine adamraine requested a review from a team as a code owner December 19, 2024 23:03
@adamraine adamraine requested review from connorjclark and removed request for a team December 19, 2024 23:03
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
2 participants