|Summary:||hasOwnProperty works inconsistently between WebKit and Firefox|
|Product:||WebKit||Reporter:||Marc Silverman <silverma>|
|Severity:||Normal||CC:||ap, barraclough, silverma|
|Version:||528+ (Nightly build)|
|OS:||OS X 10.7|
Description Marc Silverman 2012-03-01 15:26:21 PST
Comment 1 Gavin Barraclough 2012-03-01 16:57:09 PST
I believe this is actually a WebIDL related bug, and that Firefox's behavior is correct. I believe hasOwnProperty is working correctly on both browsers, and that it is actually the DOM that is different (in Safari, 'style' is a property of the element, in Firefox it is presumably a property of the prototype). If so, it is Firefox behaving correctly – I believe WebIDL specifies that such properties should be on the prototype.
Comment 2 Alexey Proskuryakov 2012-03-02 14:19:17 PST
> property of the element, in Firefox it is presumably a property of the prototype Which is a of course a general issue that has been reported before. Not sure what the best original is.