Fix silly logic error
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Fri, 22 Jul 2011 11:41:21 -0600
changeset 442 2c05ce66039c
parent 441 33cf86cf2e6b
child 443 a38658e347fc
Fix silly logic error

This was making black parse as an invalid color, and some invalid colors
probably were parsing as valid.
implementation.js
--- a/implementation.js	Fri Jul 22 10:22:17 2011 -0600
+++ b/implementation.js	Fri Jul 22 11:41:21 2011 -0600
@@ -512,7 +512,7 @@
 		// Maybe it's really black, maybe it's invalid.
 		outerSpan.color = "white";
 		color = getComputedStyle(innerSpan).color;
-		if (color == "rgb(0, 0, 0)") {
+		if (color != "rgb(0, 0, 0)") {
 			return null;
 		}
 	}