Closed colindcli closed 7 months ago
second example:
There is also a more special code. The code has been simplified to the minimum. The outermost div is abnormal.
var html = @"
<div>
<span>
<font>
<div>
<span>
<div></div>
</span>
</div>
</font>
</span>
<span></span>
</div>";
var doc = new HtmlDocument();
doc.LoadHtml(html);
var newHtml = doc.DocumentNode.OuterHtml;
newHtml value is:
<div>
<span>
<font>
<div>
<span></span>
<div></div>
</div>
</font>
</span>
</div>
<span></span>
div
position is wrong!
Test URL: https://dotnetfiddle.net/K1JXDE
I also want to join this issue, until version 57 this didn't cause an exception:
HtmlNode.CreateNode("<span><div></div></span>");
This code doesn't contain <p>
, Chromium also allows such HTML
Hello,
Thank you for reporting. We are already aware of this issue here: https://github.com/zzzprojects/html-agility-pack/issues/531
It should be fixed really soon.
Best Regards,
Jon
Hello @colindcli , @Jagailo
The code added in v1.11.57 has been reverted in v1.11.58, so this issue should no longer happen.
More information can be found in the issue #529 for you @colindcli
Best Regards,
Jon
Similar to the previous situation in #529
Test URL: https://dotnetfiddle.net/HrDL5G