New issue
Advanced search Search tips
Starred by 3 users
Status: Fixed
Closed: Dec 2015
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Launch-OWP
Launch-Accessibility: ----
Launch-Legal: ----
Launch-M-Approved: ----
Launch-M-Target: ----
Launch-Privacy: ----
Launch-Security: ----
Launch-Status: ----
Launch-Test: ----
Launch-UI: ----
Product-Review: ----

Blocked on:
issue 43394

Sign in to add a comment
Move DOM attributes to prototype chains.
Project Member Reported by, Apr 13 2015 Back to list
Change description:
Blink has placed DOM attributes on instances instead of prototypes. However, the Web IDL spec requires that DOM attributes must be placed on prototype chains (except for a few exceptions such as static attributes and [Unforgeable].) We move DOM attributes on instances to prototype chains following the spec.

Changes to API surface:
Typical issues that web developers would face to are as follows, but not limited to.
- JSON.stringify(domObject)
  returns {}, which was {domAttr1: value1, domAttr2, value2, ...}
- "use strict"; domObject.readonlyAttr = anyValue
  throws an exception.  Before, just ignored.
- domObject.hasOwnProperty("feature1")
  returns false even if feature1 is supported.
  ("feature1" in domObject) is the correct way.

Public standards discussion:

Support in other browsers:
Internet Explorer: supported
Firefox: supported
Safari: not supported

Detailed work is tracked here:

Comment 2 by, Apr 13 2015
Blockedon: chromium:43394
(Using "blocked-on" to track the two-way relationship)
Status: Fixed
Sign in to add a comment