[Bug 27965] [Shadow]: Shadow host with tabindex=-1, all descendent tree should be ignored for tab navigation

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27965

--- Comment #2 from Takayoshi Kochi <kochi@google.com> ---
Let me explain an example.

Suppose I have an component (which is out of control of mine)
2 focusables contained in a shadow.

<login-extras>
 |#shadow-root
 | <input type=checkbox> save cookie
 | <a href="http://example.com/help">Help</a>
</login-extras>

I put it in some form:

<form>
 Name: <input>
 Password: <input type=password>
 <login-extras></login-extras>
 <input type=submit value="login">
</form>

And want to skip <login-extra> for typical cases, only require
name and password then user can hit login button.
So I put tabindex=-1 in <login-extras>

<form>
 Name: <input>
 Password: <input type=password>
 <login-extras tabindex=-1></login-extras>
 <input type=submit value="login">
</form>

Actually, this doesn't skip the checkbox and help link.
Demo: http://jsfiddle.net/4y3xntx8/

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 26 February 2015 06:10:14 UTC