The HTML specification nominally does not allow duplicate attributes in a tag (see 13.1.2.3, last paragraph). However, browsers fail graciously when encountering such a tag, respecting only the first tag present and discarding subsequent duplicates (Safari 17614.1.25.9.10, Chrome 109.0.5414.119).
Bring node-html-parser in alignment with that convention, respecting the first attribute and ignoring subsequent matches.
The HTML specification nominally does not allow duplicate attributes in a tag (see 13.1.2.3, last paragraph). However, browsers fail graciously when encountering such a tag, respecting only the first tag present and discarding subsequent duplicates (Safari 17614.1.25.9.10, Chrome 109.0.5414.119).
Bring node-html-parser in alignment with that convention, respecting the first attribute and ignoring subsequent matches.