rangerlee / htmlparser

a simple c++ html parser
Apache License 2.0
24 stars 14 forks source link

duplicate attributes take first value instead of last #6

Open ezolenko opened 3 months ago

ezolenko commented 3 months ago

https://html.spec.whatwg.org/#attribute-name-state

"if there is already an attribute on the token with the exact same name, then this is a duplicate-attribute parse error and the new attribute must be removed from the token."