[w3c/webcomponents] Expected behaviour of contentEditable, slot and distributed nodes (#579)

I'm curious as to what the expected behaviour is in the following situation:

Given this HTML:
```html
<div id="container">
  Should this be editable?
  <p>Or this?</p>
</div>
```

Where `#container` has a shadow root of:
```html
<div contenteditable="true">
  <slot></slot>
</div>
```

>From what I've read in the spec, contenteditable - when missing - inherits from the "parent element", so should that mean that none of the distributed elements / nodes be editable? Apart from reference to `contenteditable` not propagating down from Shadow Host to its Shadow Trees, I couldn't see any reference in the Shadow DOM spec either.

Trying this out in Chrome 54, the `p` becomes editable, but the unwrapped text node is not - but the contenteditable bounding box still wraps around both when clicking on the text. In Safari 10 neither the `p` element nor text node are editable, however contenteditable still gets focus, and wraps around both, as in Chrome.

What's the expected behaviour here? Apologies if I've missed something.

-- 
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/579

Received on Wednesday, 28 September 2016 23:04:52 UTC