Skip to content

Commit

Permalink
Fix localizednumber test. Overwrite the existing value rather than ap…
Browse files Browse the repository at this point in the history
…pending
  • Loading branch information
whawker committed Oct 5, 2016
1 parent 5eea7e2 commit 9bc5883
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions feature-detects/forms/inputnumber-l10n.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ define(['Modernizr', 'createElement', 'docElement', 'getBody', 'test/inputtypes'
root.appendChild(el);
input.focus();
try {
document.execCommand('SelectAll', false); // Overwrite current input value, rather than appending text
document.execCommand('InsertText', false, '1,1');
} catch (e) { // prevent warnings in IE
}
Expand Down

0 comments on commit 9bc5883

Please sign in to comment.