What is the best way to check our web applications for errors such as "duplicate attribute"?
My development team tends to use Firefox and Firebug for web development. We've noticed some errors creeping into the codebase, usually duplicate attributes such as:
<div id="MyDiv" class="hide" class="interestingDiv">
We see no errors in Firebug's console nor can see anyway to get Firebug to report that there are errors.
We have noticed that Firefox itself IS aware of these errors. By clicking on "View Page Source", Firefox renders the second class in red and has a tooltip of "Duplicate Attribute". However we have to hunt through the code ourselves looking for any errors highlighted in red.
Surely there is a better way than manually looking at the code? What tools should we be using?
Thanks,
Phil