Friends,
I notice in Firefox v23.0.1 that, hasOwnProperty
of HTMLElement(input,button..etc) doesn't work,
button1.hasOwnProperty('id') = false
I use for in to check:
var str1 = '';
for (pp in button1) {
if (button1.hasOwnProperty(pp)) {
str1 += (',' + pp);
}
}
alert(str1);//nothing here
but in chrome hasOwnProperty works well.
do you know is it a bug?