New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 628158 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Compat



Sign in to add a comment

Radio buttons in shadow DOM are no longer mutually exclusive

Reported by t...@barham.info, Jul 14 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. Create an HTML document with the following HTML:

<div id="host1">This is radio 1</div>
<div id="host2">This is radio 2</div>

<script>
var host = document.querySelector('#host1');
var root = host.createShadowRoot();
root.innerHTML = '<input id="radio-1" type="radio" name="group-1"><label for="radio-1"><content></content></label>';

host = document.querySelector('#host2');
root = host.createShadowRoot();
root.innerHTML = '<input id="radio-2" type="radio" name="group-1"><label for="radio-2"><content></content></label>';
</script>

<div><input id="radio-3" type="radio" name="group-1"><label for="radio-3">This is radio 3</label></div>
<div><input id="radio-4" type="radio" name="group-1"><label for="radio-4">This is radio 4</label></div>

2. Open in recent version of Chrome

What is the expected behavior?
All the radio buttons should be mutually exclusive to each other (since they all have the same name).

What went wrong?
The first two radio buttons, which are each in a separate shadow dom, aren't mutually exclusive (to each other or to the other radio buttons).

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? Yes Up until a few weeks ago (not sure exactly which release broke it).

Does this work in other browsers? N/A 

Chrome version: 51.0.2704.106  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 22.0 r0
 
Cc: rnimmagadda@chromium.org
Labels: Needs-Feedback
Unable to repro this issue on Windows 7, 10, MAC (10.11.5) & Ubuntu Trusty (14.04) for Google Chrome Stable Version - 51.0.2704.106

Screen-recording is attached.

@tim: Could you please re-test the same on a clean profile [chrome://settings -> Add Person] and let us know your observations.

Also, if the repro procedure is incorrect, please provide us the screen-recording for the same.

Thank you.
628158.mov
1.5 MB Download
Components: Blink>DOM
Components: Blink>Forms>Button

Comment 4 by tkent@chromium.org, Aug 5 2016

Cc: tkent@chromium.org
Components: -Blink>Forms>Button -Blink>DOM Blink>Forms>Radio Blink>WebComponents
Status: WontFix (was: Unconfirmed)
The new behavior conforms to the standard, and the old behavior was a bug.
See  Issue 394302 .

Sign in to add a comment