Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yield does not render elements after a self-closing tag #1111

Closed
ghost opened this issue Aug 8, 2015 · 2 comments
Closed

Yield does not render elements after a self-closing tag #1111

ghost opened this issue Aug 8, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 8, 2015

JSFiddle Example

Yield stops rendering after a self-closing tag.

@GianlucaGuarini GianlucaGuarini added this to the 2.2.4 milestone Aug 9, 2015
@GianlucaGuarini
Copy link
Member

I am not sure this is a riot issue. Check this example without riot https://jsfiddle.net/9uezdbo9/1/
html used

<div>Element before</div>
<self-close/>
<div>Element after</div>

html rendered

<div>Element before</div>
<self-close>
  <div>Element after</div>
</self-close>

I will consider this a minor issue, and I do not know whether we should fix it, maybe we could add more info about this issue in our doc

@ghost
Copy link
Author

ghost commented Aug 9, 2015

Thank you for clearing that up. It is an unexpected behavior, so I think I will just avoid using any self-closing tags for the time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant