WebReflection / hyperHTML-Element

An extensible class to define hyperHTML based Custom Elements.
ISC License
202 stars 25 forks source link

Observation: self-closing custom tags #14

Closed AutoSponge closed 6 years ago

AutoSponge commented 6 years ago

Not sure if this is a bug or known issue.

When using self-closing custom tags, only the first one renders. For example, using the codepen, change the innerHTML line to this:

document.body.innerHTML =
  '<my-component name="First"/><my-component name="Third"/>';

I would expect to see "Hello, First Hello, Third Hello, Second" but instead only see "First" and "Second".

WebReflection commented 6 years ago

that's how HTML works. hyperHTML is based on standards, not JSX