<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>37570</bug_id>
          
          <creation_ts>2010-04-14 06:49:35 -0700</creation_ts>
          <short_desc>CSSStyleDeclaration CSS properties should be enumerable</short_desc>
          <delta_ts>2010-04-16 11:20:32 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>23946</dup_id>
          
          <bug_file_loc>http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Nikita Vasilyev">me</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>212324</commentid>
    <comment_count>0</comment_count>
    <who name="Nikita Vasilyev">me</who>
    <bug_when>2010-04-14 06:49:35 -0700</bug_when>
    <thetext>How to reproduce
------------------
for (k in document.body.style) if (k==&quot;background&quot;) console.log(&quot;Hooray!&quot;)

Expected result
---------------
&quot;Hooray!&quot;

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>213314</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-04-16 11:20:32 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 23946 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>