RESOLVED DUPLICATE of bug 9950 7543
Computed style object presents duplicate properties when using "for..in"
https://bugs.webkit.org/show_bug.cgi?id=7543
Summary Computed style object presents duplicate properties when using "for..in"
Peter Flynn
Reported 2006-03-01 18:27:28 PST
1. Open testcase 2. Click the button to list all the properties of a computedStyle object 3. Click the button again Expected result: The list is the same in both cases Actual result: The second time, the list contains several duplicated items. This should NEVER happen when iterating the keys of a JavaScript object using "for ... in". The duplicated items are: getPropertyValue, getPropertyCSSValue, removeProperty, getPropertyPriority, setProperty, item Clicking additional times gives the same results as the 2nd click. No further duplicates are added.
Attachments
Testcase (437 bytes, text/html)
2006-03-01 18:28 PST, Peter Flynn
no flags
Peter Flynn
Comment 1 2006-03-01 18:28:18 PST
Created attachment 6798 [details] Testcase
Alexey Proskuryakov
Comment 2 2006-05-02 06:12:40 PDT
See also: bug 6639 (duplicate?).
Peter Flynn
Comment 3 2006-05-02 10:02:52 PDT
(In reply to comment #2) However, the problem here does not occur the very first time the properties are enumerated. Could it be that process drops some new copies of the properties in question into the prototype chain? If so, then this would be a dupe...
Alexey Proskuryakov
Comment 4 2006-07-16 21:44:46 PDT
*** This bug has been marked as a duplicate of 9950 ***
Note You need to log in before you can comment on or make changes to this bug.