[w3c/webcomponents] replacing SLOT before it is executed in dom? (#749)

Say `<show-source>` web component meant to display the HTML as text which located within its body:
```html
    <show-source>
         <style> h3{color:red} </style>
         <h3>Should be in red</h3>
    </show-source>
```

With async web component loading the UA of course will run css from content making all H3 red. But if the component declaration will be inline and available when UA is rendering `<show-source>` its code would not populate the embedded dom, replacing it with rendered text instead.

Q1. What events would permit to cut-off the inner dom before it is executed by UA?
Q2. What events would allow to interrupt the setting of innerHTML or inner dom injection making the substitution possible in run time?

Asking here as the question could become an enhancement request.

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

Received on Tuesday, 27 March 2018 16:41:57 UTC