Bug 156500 - Do not throw when getting selectionDirection/selectionStart/selectionEnd on input
Summary: Do not throw when getting selectionDirection/selectionStart/selectionEnd on i...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-04-12 03:30 PDT by Simon Pieters
Modified: 2016-07-21 09:07 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Pieters 2016-04-12 03:30:23 PDT
See https://github.com/whatwg/html/pull/1006

var input = document.createElement('input');
input.type = 'checkbox';
input.selectionDirection; // should return null
input.selectionStart; // should return null
input.selectionEnd; // should return null
Comment 1 Chris Dumez 2016-04-12 08:57:17 PDT
I am not against this change but I am slightly worried about backward compatibility here. I think I'll wait a bit before implementing this.
Comment 2 Radar WebKit Bug Importer 2016-04-12 08:58:07 PDT
<rdar://problem/25680941>
Comment 3 Chris Dumez 2016-07-21 09:07:55 PDT
Chrome 52 and Firefox 47 still throw in this case.