[Webkit-unassigned] [Bug 217623] New: CSSStyleDeclaration breaks JS spec (properties not showing up in Object.getOwnPropertyNames)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 12 11:01:43 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=217623
Bug ID: 217623
Summary: CSSStyleDeclaration breaks JS spec (properties not
showing up in Object.getOwnPropertyNames)
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: gsnedders at apple.com
CC: koivisto at iki.fi, simon.fraser at apple.com
> "-webkit-border-before" in document.body.style
< true
> document.body.style.hasOwnProperty("-webkit-border-before")
< true
> Object.keys(document.body.style).indexOf("-webkit-border-before")
< -1
> Object.getOwnPropertyNames(document.body.style).indexOf("-webkit-border-before")
< -1
> Object.getOwnPropertyNames(document.body.style.__proto__).indexOf("-webkit-border-before")
< -1
> Object.getOwnPropertyNames(document.body.style.__proto__.__proto__).indexOf("-webkit-border-before")
< -1
Note that the JS spec says for [[OwnPropertyKeys]] ( ), as an invariant:
> The returned List must contain at least the keys of all non-configurable own properties that have previously been observed.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201012/f989aef9/attachment.htm>
More information about the webkit-unassigned
mailing list