Changeset 86926 in webkit
- Timestamp:
- May 19, 2011 11:37:01 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r86924 r86926 1 2011-05-19 Naoki Takano <takano.naoki@gmail.com> 2 3 Reviewed by Kent Tamura. 4 5 Fix a problem that updating HTMLInputElement::value sets the cursor to a wrong position. 6 https://bugs.webkit.org/show_bug.cgi?id=61163 7 8 Manual test input-number-localization.html. 9 Because we can't assume any number formats in various WebKit ports. 10 11 * html/HTMLInputElement.cpp: 12 (WebCore::HTMLInputElement::setValue): The cursor must be the last position of visibleValue(), not m_value. 13 * manual-tests/input-number-localization.html: Added manual test to check the cursor correctly moved to the last poisition of the input. 14 1 15 2011-05-19 Jer Noble <jer.noble@apple.com> 2 16 -
trunk/Source/WebCore/html/HTMLInputElement.cpp
r86832 r86926 944 944 945 945 if (isTextField()) { 946 unsigned max = m_value.length();946 unsigned max = visibleValue().length(); 947 947 if (document()->focusedNode() == this) 948 948 WebCore::setSelectionRange(this, max, max); -
trunk/Source/WebCore/manual-tests/input-number-localization.html
r81649 r86926 22 22 <div>Standard format: <output id=output></output></div> 23 23 24 <p>Input test: Type the number text "1234" into the the followin number field. 25 The number string will be "1,234" and the cursor position must be the last position. 26 </p> 27 <div><input type="number" onkeyup="this.value=this.value" /></div> 28 24 29 <script> 25 30 function handleInput() {
Note: See TracChangeset
for help on using the changeset viewer.