[Bug 27757] New: [Shadow]: how is the autofocus attribute supposed to be handled?

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

            Bug ID: 27757
           Summary: [Shadow]: how is the autofocus attribute supposed to
                    be handled?
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Component Model
          Assignee: dglazkov@chromium.org
          Reporter: mail@rodneyrehm.de
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-webapps@w3.org
            Blocks: 14978

The section "6.2 Focus Navigation" [1] does not specify how the autofocus
attribute [2] is to be handled if set on an element within a ShadowRoot.

As of now Chrome and Firefox consider all elements at page load, including the
ones in ShadowRoots when looking for an element with autofocus. That, however,
is not the behavior I expected from an encapsulated DOM. What I expected is the
same behavior the dialog element presents in showModal in steps 8 - 10 [3].

[1] http://w3c.github.io/webcomponents/spec/shadow/#focus-navigation
[2]
http://www.w3.org/html/wg/drafts/html/master/forms.html#autofocusing-a-form-control:-the-autofocus-attribute
[3]
http://www.w3.org/html/wg/drafts/html/master/interactive-elements.html#dom-dialog-showmodal

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

Received on Monday, 5 January 2015 21:23:40 UTC