- From: Ryosuke Niwa <notifications@github.com>
- Date: Fri, 20 Sep 2019 00:28:33 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 20 September 2019 07:28:54 UTC
Hm... that might be annoying behavior for users though. If page's script kept focusing a component, it would always reset the focus in the component. I guess the current processing model returns early if the current focus is already at where `focus()` is called: https://html.spec.whatwg.org/multipage/interaction.html#focus-processing-model so maybe we need an equivalent check for shadow hosts so that if you'd call focus() on an already focused shadow host, then we'd just simply return early. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/840#issuecomment-533442432
Received on Friday, 20 September 2019 07:28:54 UTC