ubermichael / isetools

Tools for parsing data for the Internet Shakespeare Editions
GNU General Public License v2.0
2 stars 3 forks source link

log warning for duplicate attributes #35

Closed telic closed 2 years ago

telic commented 8 years ago

When an element has two attributes with the same name, all but the last instance are silently dropped (eg. <ACT n="1" n="2"> would appear in the DOM with only one attribute "n" set to "2").

ca.nines.ise.node.TagNode#setAttribute should log a warning if it notices this is about to happen.