Re: [w3c/webcomponents] There should be a declarative way to import HTML modules (#849)

Also with a `<slot>` element at root document :
```
<header>
    <slot name="slot-with-u" src="welcome.html"></slot>
</header>
```

... but I still perfer the `<content select="">` way !  
Augmenting the `content` element with a `src` attribute make it more versatile (even in shadow roots):
```
<header>
    <content src="welcome.html"></content>
</header>
```

But the precedence have to be solved when given along with a lightDOM content and a `select` attribute
```
<content select="span.name" src="welcome.html"></content>
```

(I'm sure how content element implementation can be used outside a ShadowRoot element...)

-- 
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/849#issuecomment-609873124

Received on Monday, 6 April 2020 15:43:51 UTC