mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 743229 - Return 'number' instead of 'text' for input type='number' element in the showime event. r=cjones
This commit is contained in:
parent
413ece3831
commit
28b43989eb
@ -37,6 +37,12 @@ XPCOMUtils.defineLazyGetter(Services, 'fm', function() {
|
||||
return false;
|
||||
|
||||
let type = targetElement.type;
|
||||
// FIXME/bug 344616 is input type='number'
|
||||
// Until then, let's return 'number' even if the platform returns 'text'
|
||||
let attributeType = targetElement.getAttribute('type');
|
||||
if (attributeType && attributeType.toLowerCase() === 'number')
|
||||
type = 'number';
|
||||
|
||||
fireEvent('showime', { type: type });
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user