minutekey / ez-access-web

Automatically exported from code.google.com/p/ez-access-web
0 stars 0 forks source link

Call hasAttribute to check for exsistence rather than getAttribute == null #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Fixed. hasAttribute is now used in the almost all situations.

Original comment by aeharding on 28 May 2013 at 9:38