[Webkit-unassigned] [Bug 62358] Needs a unified way to handle a case when a shadow host is focused.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 9 06:13:54 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=62358





--- Comment #1 from Hayato Ito <hayato at chromium.org>  2011-06-09 06:13:54 PST ---
How about the following simple rule?

  - If a shadow host is focused (either its focus() is called or it is traversed by tab key), we look for the fist focusable element in its shadow root further and focus that. If such an element is not found in a shadow root, focus the shadow host itself.
  - If a shadow host doesn't like this behavior, the shadow host should set tabindex of all focusable elements in the shadow root to '-1' beforehand so that the shadow host itself is focused.
    We should update <input> or <textarea> element to set tabindex of their focusable elements in their shadow root to '-1' when they are created.

I tried this approach and it seems to work well so far.
If you have any suggestions or opinions, that would be highly welcome.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list