Re: [w3c/webcomponents] [declarative-custom-elements] shorter syntax (#885)

The problem of the proposed syntax is ambiguity. If no content is present - does it mean that any passed content should be erased? Or preserved instead?
```html
<element name="x-x">
</element>
<x-x>Some content that should be... erased?</x-x>
```
With `<template>` it is more apparent - if it's present, the content will be replaced with the template content, with regards to shadow-root attribute.

-- 
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#issuecomment-719535224

Received on Friday, 30 October 2020 12:55:00 UTC