Bug 197991
| Summary: | CSSStyleDeclaration properties should be WebIDL attributes, not use namedItem. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Emilio Cobos Álvarez (:emilio) <emilio> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | esprehn |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Emilio Cobos Álvarez (:emilio)
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Emilio Cobos Álvarez (:emilio)
Blink bug is https://bugs.chromium.org/p/chromium/issues/detail?id=700338
Elliott Sprehn
This is the same bug as https://bugs.webkit.org/show_bug.cgi?id=194327
Emilio Cobos Álvarez (:emilio)
Thanks, I searched for CSSStyleDeclaration, and thus didn't find it :)
*** This bug has been marked as a duplicate of bug 194327 ***