zzzprojects / html-agility-pack

Html Agility Pack (HAP) is a free and open-source HTML parser written in C# to read/write DOM and supports plain XPATH or XSLT. It is a .NET code library that allows you to parse "out of the web" HTML files.
https://html-agility-pack.net
MIT License
2.63k stars 375 forks source link

Add tfoot to appropriate fields in IsParentExplicitEnd #563

Closed dylanstreb closed 1 month ago

dylanstreb commented 1 month ago

fixes #562

Added tfoot to IsParentExplicitEnd, based on my reading of the MDN docs stating when the affected end tags are optional.

I'm not able to run all test cases (I think I'm missing some of the supported platforms), but a quick test program shows that it fixes my example code.

JonathanMagnan commented 1 month ago

Hello @dylanstreb ,

Thank you for your PR, looks perfect with an additional fix for the thead

Best Regards,

Jon