- From: Joe Pea <notifications@github.com>
- Date: Fri, 10 Jul 2020 10:59:28 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 10 July 2020 17:59:40 UTC
If we're going to add special attributes to `template`, like `shadowmode` which is specifically for custom elements (right?) then why not use template for the custom element definition without and extra `definition` element (less nesting)?
F.e. instead of
```html
<definition name="percentage-bar">
<template shadowmode="closed">
<div>...</div>
<style>/*...*/</style>
</template>
<script type=module>
export default class MyEl extends HTMLElement { /*...*/ }
</script>
</definition>
```
We could write the following more simple version:
```html
<template element="percentage-bar" shadowmode="closed">
<div>...</div>
<style>/*...*/</style>
<script type=module>
export default class MyEl extends HTMLElement { /*...*/ }
</script>
</template>
```
--
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/885
Received on Friday, 10 July 2020 17:59:40 UTC