Summary: | Getting the descriptor selectionDirection throws error | ||
---|---|---|---|
Product: | WebKit | Reporter: | Erik Arvidsson <arv> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | cdumez, haraken, oliver, rniwa, zcorpan |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 49739 | ||
Bug Blocks: |
Description
Erik Arvidsson
2013-03-05 13:22:17 PST
Proposed spec change to not throw on getting: https://github.com/whatwg/html/pull/1006 This is apparently fixed on WebKit trunk: var input = document.createElement('input'); input.type = 'checkbox'; Object.getOwnPropertyDescriptor(input, 'selectionDirection'); -> returns undefined Object.getOwnPropertyDescriptor(input.__proto__, 'selectionDirection'); -> returns {get: function, set: function, enumerable: true, configurable: true} Feel free to reopen if I missed something. (In reply to comment #1) > Proposed spec change to not throw on getting: > https://github.com/whatwg/html/pull/1006 Oh, this does not seem strictly related to this bug. While WebKit no longer throws on getting the descriptor, accessing input.selectionDirection will throws. Right, filed https://bugs.webkit.org/show_bug.cgi?id=156500 |