Odd inconsistencies with WebC slots and HTML content #2969
cfjedimaster
started this conversation in
Uncategorized
Replies: 1 comment 2 replies
-
|
So... I finally figured out why it happened. Well, how, not sure why. ;) When my test had this: <some-component>
html crap
</some-component>
<p>
<some-component>
another test html crap
</some-component>It caused issues. What specifically? The unclosed P in the middle. Changing it to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm seeing some weirdness with a WebC component I built that uses a slot. When I called my component with basic stuff inside, so for example:
It worked just fine. If I added a bit of HTML, it worked fine too:
But, as soon as I added some block level HTML, it "broke", such that the content was rendered, outside of the tag. For example:
Here's my component:
And rendered like so:
Now, to make things weird, I decided to build a simpler reproducable case for foo. Here is foo.webc:
Same basic idea, right? But if I do:
It works perfectly.
Beta Was this translation helpful? Give feedback.
All reactions