Hi, thanks for the great project. I'm experimenting with parsing html strings. While I probably should use loadHTMLFragment() instead of loadHTML(), but I think this is still a bug.
If I try to loadHTML() a string which does not start with a tag but just with plain text, the first text segment is silently ignored.
In the example below, the starting text Aaa disappears from the regenerated HTML string:
Hi, thanks for the great project. I'm experimenting with parsing html strings. While I probably should use
loadHTMLFragment()
instead ofloadHTML()
, but I think this is still a bug. If I try toloadHTML()
a string which does not start with a tag but just with plain text, the first text segment is silently ignored. In the example below, the starting textAaa
disappears from the regenerated HTML string: