[w3c/webcomponents] Slotted content inside a <p> (#841)

Slotted content doesn't get slotted when the custom element is inside a <p> element
See live here: https://codesandbox.io/embed/static-dvd6u

Works:
```html
<div>
  <my-element>
    <div class="caption">Red box</div>
  </my-element>
</div>
```

Doesn't work:
```html
<p>
  <my-element>
    <div class="caption">Red box</div>
  </my-element>
</p>
```

I know <p> is treated specially by the HTML parser. So is this an issue in the spec or the browser implementation? (Both Firefox and Chrome behave the same)


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

Received on Sunday, 22 September 2019 22:29:38 UTC