-
Notifications
You must be signed in to change notification settings - Fork 133
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
domPropsInnerHTML incorrect markup #90
Comments
Hello @alidcastano, thank you for the report but it's not enough information, can you please provide a link to repository where this happens? |
Here's the repo: https://github.com/nuxt-community/nuxtent. You can see the error in action if you run the docs. Go to any documentation page and press refresh.
And I provided a link to the exact place in the source code above. Let me know if you need any other information! |
@nickmessing Any update on this? Just trying to see how I should update the docs for Nuxtent... 😬 |
@alidcastano, sorry, totally forgot about it, will take a look in the next hours. |
Awesome, thanks! |
@nickmessing Did you have a chance to look into it? |
@alidcastano, unfortunately no, had really busy time at work, but looks like I will have time today |
Any updates on this? |
Found that h('pre', {
domProps: {
innerHTML: 'content',
},
}) works and h('pre', {
domProps: {
innerHTML: 'content',
},
}, []) doesn't. |
Oh, thank you for that finding, I didn't have time for this issue but since you tracked it down it can be easily fixed, thank you for the effort @whtsky. |
@alidcastano, are you sure
and
Looks like an SSR issue. |
Discussion continuer ad vuejs/vue#6519 |
I'm trying to render HTML using JSX.
For example:
However I'm getting the following error:
When I try the same exact HTML using the v-html directive in a vue template, the error disapears.
I would resort to using that, but I'm trying to use create a helper component for
nuxtent
that based on data renders a dynamic component or HTML at runtime, so that vue components could easily be used inside markdown.The text was updated successfully, but these errors were encountered: