Gecko has unprefixed textDecoration* default tip
authorAryeh Gregor <ayg@aryeh.name>
Thu, 06 Aug 2015 16:43:19 +0300
changeset 744 22257987e0be
parent 743 7fdfbbba5b54
Gecko has unprefixed textDecoration*
implementation.js
--- a/implementation.js	Thu Aug 06 16:42:57 2015 +0300
+++ b/implementation.js	Thu Aug 06 16:43:19 2015 +0300
@@ -1971,11 +1971,16 @@
 	if (["A", "FONT", "S", "SPAN", "STRIKE", "U"].indexOf(node.tagName) != -1
 	&& node.hasAttribute("style")
 	&& (node.style.length == 1
-	|| (node.style.length == 4
-		&& "MozTextBlink" in node.style
-		&& "MozTextDecorationColor" in node.style
-		&& "MozTextDecorationLine" in node.style
-		&& "MozTextDecorationStyle" in node.style)
+		|| (node.style.length == 4
+			&& "MozTextBlink" in node.style
+			&& "MozTextDecorationColor" in node.style
+			&& "MozTextDecorationLine" in node.style
+			&& "MozTextDecorationStyle" in node.style)
+		|| (node.style.length == 4
+			&& "MozTextBlink" in node.style
+			&& "textDecorationColor" in node.style
+			&& "textDecorationLine" in node.style
+			&& "textDecorationStyle" in node.style)
 	)
 	&& (node.style.textDecoration == "line-through"
 	|| node.style.textDecoration == "underline"