Pet*_*ter 10 javascript browser google-chrome
Chrome已对我的测试中导致此错误的数字输入进行了更改
Uncaught InvalidStateError: Failed to read the 'selectionStart' property from 'HTMLInputElement': The input element's type ('number') does not support selection
我想了解为什么数字/电子邮件输入不能选择(原文如此)?
因为标准是这样定义的。 http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
由于 IDNA、值清理和本地化,我们无法获得 type=email 和 type=number 的精确显示值。因此设置/获取选择信息是没有意义的。
归档时间: |
|
查看次数: |
2358 次 |
最近记录: |