Summary: | hasOwnProperty works inconsistently between WebKit and Firefox | ||
---|---|---|---|
Product: | WebKit | Reporter: | Marc Silverman <silverma> |
Component: | WebCore JavaScript | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ap, barraclough, silverma |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac (Intel) | ||
OS: | OS X 10.7 |
Description
Marc Silverman
2012-03-01 15:26:21 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. > 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.
|