Re: [webcomponents] [Shadow] activeElement behavior seems to break encapsulation (#358)

I guess such a definition is not what you want. Your definition should consider the following case, I guess.

Suppose focusableX is focused.


```html
<body>
    <focusable1></focusable1>
    <x-foo>
      <focusable2 slot="slot1">
        <focusableX></focusableX> 
      </focusable2>   // This is assigned to a slot
      <focusable3></focusable3>   // This is not assigned to any slots
    </x-foo>
</body>
```

x-foo's shadow tree:
```html
  <x-bar>
   <slot name="slot1" slot="slot2"></slot>  // <- focusable2 is assigned to this slot
  </x-bar>
  <focusable4></focusable4>
```

x-bars shadow tree:
```html
   <slot name="slot2"></slot>
```


---
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/358#issuecomment-202260726

Received on Monday, 28 March 2016 06:40:28 UTC