-
Notifications
You must be signed in to change notification settings - Fork 169
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
Regression: Setting innerHTML in Angular template broken #2730
Comments
May be caused by: #2375 |
Did you change the JSoup version during the update or have you used a patched JSoup before? If it is about changing the version only, I can force a particular one via Maven. |
It's both: we were using custom version before this change and updated to a stock one after it was released with the API we need. |
Ok, so no easy way back. |
First of all, this may not be the case. At second, we can try out the old version and see if it works (I'll release one for you) |
Found an interesting affect: After JSoup.parse() parse the document I can see different handling for That one is the one that is not working in the end. Note that it is innerhtml now. That one still works. Check https://preview.vaadin.com/blog/community-spotlight-august-2017 You will notice that the body of the blog is not displayed but the author*s description. |
BTW isn't Angular Template about to be removed? |
Feel free :) We are always happy about PRs! |
Unfortunately, we have to stay with it for a little longer, due to internal dependencies, like the one @paulroemer is talking about :)
So, did I get it right that the issue is the lower case? Or is it still not displayed? |
@heruan Damn, I forgot that the repo is public nowadays. Sorry for that. But now you know that we have a big cleanup task before we can remove the support. @SomeoneToIgnore |
That sounds promising. I'll prepare a special version for you with the old dependency, but it would be super cool if you try to fix the case thing, since it's the way it's supposed to work officially. |
At the moment I have no idea why JSoup is doing it the way it does. Of course, I would prefer fixing it without switching back again. Since 1.10.1 there is the possibility to keep the tag's case: I will create a patched template parser routine and test locally if that helps. |
Okay, using the ParserSettings to prevent JSoup from lower casing the tags did the trick. |
So, we can close the issue? :) |
Nope, because I had to patch the angular template parser. |
Have released a supplementary version. |
Hi all,
We noticed a regression in Angular templates so that using
innerHTML
does not work anymore:In Angular template:
<section class="blog-post-view__article-body" itemprop="articleBody" [innerHTML]="post.text"></section>
Rendered in browser:
<section class="blog-post-view__article-body" itemprop="articleBody"></section>
As we are not using
innerHTML
for Polymer templates we cannot be sure if they are affected, too.That worked with Flow 0.1.22 but not after upgrading to 1.0.0.alpha5.
The text was updated successfully, but these errors were encountered: