You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Really sorry to open another issue. I am a beginner with web components, so please forgive me if this is a misunderstanding...
I try to write a polymer component that doesn't need a content: only a single attribute.
It seems to me logical to write the template without a <content> tag: perhaps is this a misuse but it seems to work.
The rendering is fine with the <x-element></x-element> syntax.
But it does not work with the <x-element/> syntax.
Here is a gist of an HTML doc of my problem (the problematic case is in red) : https://gist.github.com/bdulac/5c39b740ec7a52a15e8b
The text was updated successfully, but these errors were encountered:
Unless I'm mistaken, this is really about requiring end tags.
Surprisingly, the HTML spec lists a finite set of html tags that don't
require end tags. If you're inventing tags thru polymer, requiring an end
tag is in compliance with HTML spec. Having said this, I learned this the
hard way as I'm sure many others will too. Maybe there's a way to detect
these and complain loudly v.s. silently failing. Until then, always add
end tags.
Really sorry to open another issue. I am a beginner with web components,
so please forgive me if this is a misunderstanding...
I try to write a polymer component that doesn't need a content: only a
single attribute.
It seems to me logical to write the template without a tag:
perhaps is this a misuse but it seems to work.
The rendering is fine with the syntax.
But it does not work with the syntax.
Here is a gist of an HTML doc of my problem (the problematic case is in
red) : https://gist.github.com/bdulac/5c39b740ec7a52a15e8b
—
Reply to this email directly or view it on GitHub #962.
Really sorry to open another issue. I am a beginner with web components, so please forgive me if this is a misunderstanding...
I try to write a polymer component that doesn't need a content: only a single attribute.
It seems to me logical to write the template without a <content> tag: perhaps is this a misuse but it seems to work.
The rendering is fine with the <x-element></x-element> syntax.
But it does not work with the <x-element/> syntax.
Here is a gist of an HTML doc of my problem (the problematic case is in red) : https://gist.github.com/bdulac/5c39b740ec7a52a15e8b
The text was updated successfully, but these errors were encountered: