Align <area> with no href but js event attached with <a> with no href but js event attached - #61929
Open
giacomo-petri wants to merge 5 commits into
Open
Align <area> with no href but js event attached with <a> with no href but js event attached#61929giacomo-petri wants to merge 5 commits into
giacomo-petri wants to merge 5 commits into
Conversation
Contributor
|
@HaTheo - can you please take a look |
sideshowbarker
removed their request for review
August 21, 2026 08:35
cookiecrook
reviewed
Aug 27, 2026
| - https://github.com/w3c/aria/issues/2867 | ||
| - https://github.com/web-platform-tests/interop-accessibility/issues/245 | ||
| --> | ||
| <area shape="rect" coords="0,15,15,31" alt="x" data-testname="el-area-no-href[onclick]" data-expectedrole="link" class="ex" onclick="alert('test')"> |
Contributor
There was a problem hiding this comment.
Even though it shouldn't get clicked in the test, console.log() (vs alert()) would ensure a non-blocking result if it did.
Suggested change
| <area shape="rect" coords="0,15,15,31" alt="x" data-testname="el-area-no-href[onclick]" data-expectedrole="link" class="ex" onclick="alert('test')"> | |
| <area shape="rect" coords="0,15,15,31" alt="x" data-testname="el-area-no-href[onclick]" data-expectedrole="link" class="ex" onclick="console.log(this.getAttribute('data-testname'));"> |
Please verify this before merging... I did not run the test or click the link to verify the console log, but I think it should work.
Contributor
There was a problem hiding this comment.
console.log('WPT test'); is also fine.
Contributor
Author
There was a problem hiding this comment.
alert replaced with console.log. I'm not sure what is causing the check to fail
cookiecrook
approved these changes
Aug 27, 2026
cookiecrook
left a comment
Contributor
There was a problem hiding this comment.
Approval pending suggestion to switch from alert to log.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: web-platform-tests/interop-accessibility#245
Relates to:
This PR adds tests for the
areaelement without anhrefattribute but with a JS event handler attached.It assumes that its behavior should be consistent with an
aelement without anhrefattribute but with a JS event handler attached.