Allow 'placeholder' to be a localizable attribute on HTML elements (#3257)

This commit is contained in:
Luiza Pagliari 2017-09-21 17:49:33 -03:00 committed by GitHub
parent 67439545a6
commit 0e1414dcca
1 changed files with 44 additions and 43 deletions

View File

@ -852,6 +852,7 @@ window.html10n = (function(window, document, undefined) {
, "alt": 1
, "textContent": 1
, "value": 1
, "placeholder": 1
}
if (index > 0 && str.id.substr(index + 1) in attrList) { // an attribute has been specified
prop = str.id.substr(index + 1)