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

Global quote type = Initial should not override attribute quote type on value set #564

Closed POFerro closed 1 month ago

POFerro commented 1 month ago

Hi @JonathanMagnan :)

This PR solves an error where an initially loaded attribute without quote gets a quote type of Initial even when value is set, this causes the attribute to be written without quotes even having a value.

Also added some test cases for these occasions :)

Thanks and best regards