diff --git a/core/util.js b/core/util.js index 03e69256..1130f825 100644 --- a/core/util.js +++ b/core/util.js @@ -452,7 +452,7 @@ Util.Localisation = { } // FIXME: Should update "lang" if (elem.hasAttribute("placeholder") && - isAnyOf(elem.tagName in ["INPUT", "TEXTAREA"])) { + isAnyOf(elem.tagName, ["INPUT", "TEXTAREA"])) { translateAttribute(elem, "placeholder"); } if (elem.hasAttribute("title")) {