[Webkit-unassigned] [Bug 111476] New: Getting the descriptor selectionDirection throws error

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 5 13:19:53 PST 2013


           Summary: Getting the descriptor selectionDirection throws error
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arv at chromium.org
                CC: oliver at apple.com, rniwa at webkit.org,
                    haraken at chromium.org
        Depends on: 49739

var checkbox = document.createElement('input');
input.type = 'checkbox';
Object.getOwnPropertyDescriptor(input, 'selectionDirection');  // THROWS!

It is OK to throw when we try to get the value of the selectionDirection but is an ES5 spec violation to throw on getting the descriptor.

This is most likely because we report WebIDL attributes as data properties, and as such, we read the value of the property.

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