New issue
Advanced search Search tips

Issue 918143 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Jan 7
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Interactive element inside interactive element works unexpectedly

Reported by guillaum...@gmail.com, Dec 28

Issue description

UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0

Steps to reproduce the problem:
Click on the link.

What is the expected behavior?
The link should be handled as a non-interactive element.

What went wrong?
The link works. It should be handled as a non-interactive element.

The spec says:
https://www.w3.org/TR/html5/sec-forms.html#the-button-element
4.10.6. The button element
[...]
Content model:
    Phrasing content, but there must be no interactive content descendant.

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 71.0.3578.98  Channel: stable
OS Version: 
Flash Version: Shockwave Flash 32.0 r0
 
test.html
197 bytes View Download
Labels: Needs-Triage-M71
Cc: vamshi.kommuri@chromium.org
Labels: Triaged-ET Target-73 M-73 FoundIn-71 FoundIn-73 FoundIn-72 OS-Mac
Status: Untriaged (was: Unconfirmed)
Thanks for filing the issue!

Able to reproduce the issue on reported chrome version 71.0.3578.98 and on the latest canary 73.0.3657.0 using Ubuntu 14.04, Mac 10.14.1 and Windows 10.

As the issue is seen from M60(60.0.3112.0) considering it as Non-Regression and marking it as Untriaged.

Components: -Blink>HTML Blink>Forms>Button Blink>HTML>A
Owner: tkent@chromium.org
Status: WontFix (was: Untriaged)
The specification means web authors should not put interactive elements like <a href=...> into <button> descendant.

If a <button> has <a href=...> descendant and the <a> is clicked, the link should work.  It's defined in https://dom.spec.whatwg.org/#concept-event-dispatch

Sign in to add a comment