Bug 197991

Summary: CSSStyleDeclaration properties should be WebIDL attributes, not use namedItem.
Product: WebKit Reporter: Emilio Cobos Álvarez (:emilio) <emilio>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: esprehn
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Emilio Cobos Álvarez (:emilio)
Reported 2019-05-17 11:02:15 PDT
CSSStyleDeclaration CSS property getters and such are defined to be WebIDL attributes: * https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-_camel_cased_attribute WebKit (and Blink) implement it using item(), which is not quite the same, since checks like hasOwnProperty return true for the later but not for the former.
Attachments
Emilio Cobos Álvarez (:emilio)
Comment 1 2019-05-17 11:02:42 PDT
Elliott Sprehn
Comment 2 2019-05-22 10:05:41 PDT
Emilio Cobos Álvarez (:emilio)
Comment 3 2019-05-22 10:30:26 PDT
Thanks, I searched for CSSStyleDeclaration, and thus didn't find it :) *** This bug has been marked as a duplicate of bug 194327 ***
Note You need to log in before you can comment on or make changes to this bug.