[Webkit-unassigned] [Bug 37570] New: CSSStyleDeclaration CSS properties should be enumerable
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 14 06:49:35 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=37570
Summary: CSSStyleDeclaration CSS properties should be
enumerable
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration
-interface
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: me+webkit at elv1s.ru
How to reproduce
------------------
for (k in document.body.style) if (k=="background") console.log("Hooray!")
Expected result
---------------
"Hooray!"
Actual result
-------------
Nothing happens
Notes
-----
In Firefox, Opera, and IE CSS properties are enumerable.
Unlike DOM 2 CSS[1], IDL from CSSOM[2] defines CSS properties as attributes.
Enumerable CSS properties could help me a little with http://webkit.org/b/17374
,
since it will give me all properties, including shorthands.
[1]: http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration
[2]: http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list