Bug 743229 - Return 'number' instead of 'text' for input type='number' element in the showime event. r=cjones

This commit is contained in:
Vivien Nicolas 2012-04-11 10:05:35 -07:00
parent 413ece3831
commit 28b43989eb

View File

@ -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;
}