Closed dodas closed 2 years ago
Thanks for good description of the problem. I'll look into it, this is indeed a bug.
Thanks for a swift fix!
Shouldn't he
be now listed as zeed-dom
's dependency
in package.json
?
Absolutely, here it is https://github.com/holtwick/zeed-dom/blob/master/package.json#L44
Ah, overlook that. Great!
Seems like encoded html entities are not handled properly. See this example: https://runkit.com/embed/9n1c04lodkqm Providing the following html:
I expect the following output when calling
parseHTML(html).textContent
:However,
zeed-dom
outputs the entities undecoded:I can see there is a small list of encoded/decoded entites in encoding.ts, but all other entities are being ignored. Seems like there used to be a check to optionally load
he
if available. I understand this could cause issues, however the current behavior is not ideal either. Can this be improved in any way?Thanks!