[html5] Select API for inputs of type numer and email.

Kevin Sheedy kevinsheedy at gmail.com
Thu Feb 27 04:30:51 PST 2014


Tried sending this the other day but not sure if it got through because my
application to join the group hadn't been completed yet. Re-sending just in
case.


Hi

The Chrome browser recently disabled the *select api* for inputs of type
number and email:
https://codereview.chromium.org/100433008/#ps60001

The select api is a collection of attributes and functions that allow us to
get and set which portion of text a user has highlighted in an <input>

The attributes and functions in question are:
select()
selectionStart
selectionEnd
selectionDirection
setRangeText()
setSelectionRange()

This change caused bugs in several libraries:

http://stackoverflow.com/questions/21177489/selectionstart-selectionend-on-input-type-number-no-longer-allowed-in-chrome#

https://github.com/KevinSheedy/jquery.alphanum/issues/19

The spec<http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#do-not-apply>
says
that these properties should be available for inputs of types* text,
search, url, telephone and password* but not for inputs of type *number or
email.*

I'd like to request that this collection also be made available to inputs
of type number and email.

Does anyone have any insight as to why these types were excluded?

Many Thanks,
Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20140227/b476feb6/attachment-0001.htm>


More information about the Help mailing list