From c3325dc6f7ab0a7f63a6933ab160f78cd92193c5 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Fri, 17 Feb 2017 12:43:59 +0100 Subject: [PATCH] Fix translateDOM for placeholders Replaced 'in' with a comma, like in the surrounding code. --- core/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) {