Friends,
I noticed in Firefox v23.0.1 that hasOwnProperty HTMLElement (input, button..etc) does not work,
button1.hasOwnProperty('id') = false
I use to check:
var str1 = ''; for (pp in button1) { if (button1.hasOwnProperty(pp)) { str1 += (',' + pp); } } alert(str1);
but in chrome hasOwnProperty works well.
Do you know that this is a mistake?
source share