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

<button> wrapped in <a> doesn't jump to link #1318

Open
nogicn opened this issue Sep 7, 2024 · 0 comments · May be fixed by #1401
Open

<button> wrapped in <a> doesn't jump to link #1318

nogicn opened this issue Sep 7, 2024 · 0 comments · May be fixed by #1401
Labels
bug Something isn't working has repro We have a way to reproduce this bug. reduction of web content Issue has a simplified reduction based on real-world web content. web compatibility

Comments

@nogicn
Copy link

nogicn commented Sep 7, 2024

Greetings,

Testing on multiple sites of my side projects, I noticed that in case of a wrapped in like this

<a href="/login"><button class="button">Login</button></a>

it doesn't jump to the desired link. This works on Firefox and Chromium.
Not sure if this is intended behaviour by spec or one of those random html hacks that are undocumented.

I'm on latest pull and i remember it also not working a couple of months ago on a build before the split from the OS.

here is a html example file for quick testing:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <a href="/login"> Login</a>
    <a href="/login"><button class="button">Login</button></a>
</body>
</html>

@AtkinsSJ AtkinsSJ added bug Something isn't working reduction of web content Issue has a simplified reduction based on real-world web content. has repro We have a way to reproduce this bug. web compatibility labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has repro We have a way to reproduce this bug. reduction of web content Issue has a simplified reduction based on real-world web content. web compatibility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants