[Webkit-unassigned] [Bug 49739] New: WebIDL attributes should be implemented as getters and setters on the prototype object.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 18 10:12:01 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=49739

           Summary: WebIDL attributes should be implemented as getters and
                    setters on the prototype object.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arv at chromium.org
                CC: sam at webkit.org, oliver at apple.com,
                    dglazkov at chromium.org, slightlyoff at chromium.org


This was discussed and agreed upon at the joint WebIDL ECMA TC39 meeting.

Today, we store methods on the prototype but we always store the attributes on the instance.

Current behavior:

Object.getOwnPropertyDescriptor(document.body, 'nodeType') => {"value":1,"writable":true,"enumerable":true,"configurable":true}
Object.getOwnPropertyDescriptor(Node.prototype, 'nodeType') => undefined

Expected behavior:

Object.getOwnPropertyDescriptor(document.body, 'nodeType') => undefined
Object.getOwnPropertyDescriptor(Node.prototype, 'nodeType') => {
  get: function () { [native code] },
  enumerable: true,
  configurable: true
}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list