Account for Firefox adding bgcolor to body
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Wed, 07 Sep 2011 08:37:25 -0600
changeset 563 7b1c49fcb207
parent 562 d724083aa605
child 564 51939d7ab7bc
Account for Firefox adding bgcolor to body
conformancetest/runtest.html
--- a/conformancetest/runtest.html	Wed Sep 07 08:26:36 2011 -0600
+++ b/conformancetest/runtest.html	Wed Sep 07 08:37:25 2011 -0600
@@ -70,6 +70,10 @@
 			"Wrapper div has extra attributes!  " +
 			format_value(testDiv.parentNode.innerHTML));
 
+		assert_equals(document.body.attributes.length, 0,
+			"Body has extra attributes!  " +
+			format_value(document.body));
+
 		normalizeSerializedStyle(testDiv);
 
 		setupDone = true;
@@ -82,5 +86,8 @@
 			browserTest[2].replace(/[\[\]{}]/g, ""),
 			"Unexpected innerHTML (after normalizing inline style)");
 	}, testName + " compare innerHTML");
+
+	// Silly Firefox
+	document.body.removeAttribute("bgcolor");
 }
 </script>