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
innerHTML: Empty HTML tags are incorrectly rewrite #174
Comments
If you do just |
The result of
Result:
The result of HTML5 library is good, too:
|
Okay. Sounds like innerHTML() is not using the right encoder. I'll look into it. |
So looking at the code...
I think that the right behavior at this point is to add an |
Is there any temporary workaround for this until innerHTML5 is added? My use case is that I want to edit a fragment of HTML and change all the anchor links. Right now some tags gets truncated which messes up the presentation. (An empty |
If you can drop in a bit of code, maybe we can figure something out. |
The html looks like something like this:
Lets say the above content is stored in a variable we'll call
My actual implementation is currently like this. It works unless empty elements exist
|
Hi,
We use querypath version 3.0.4 and found a weird behavior: empty HTML tags are incorrectly rewrite. For example:
The result of the above code is:
But the correct result should be:
Another example:
The incorrect result:
The text was updated successfully, but these errors were encountered: