In the code, hasAttribute should be used before getAttribute.
https://developer.mozilla.org/en-US/docs/Web/API/element.getAttribute
NOT critical (works fine and will continue to) but it is more proper to use
hasAttribute first when the attribute is not guaranteed to be in existence.
Original issue reported on code.google.com by aeharding on 23 May 2013 at 9:00
Original issue reported on code.google.com by
aeharding
on 23 May 2013 at 9:00