Interactive element inside interactive element works unexpectedly
Reported by
guillaum...@gmail.com,
Dec 28
|
|||
Issue descriptionUserAgent: 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
,
Jan 2
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.
,
Jan 7
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 |
|||
Comment 1 by swarnasree.mukkala@chromium.org
, Dec 31