Make the DOM a bit tidier
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Wed, 26 Oct 2011 12:32:49 -0600
changeset 652 7c3831ccb411
parent 651 eac8fb8e1f5f
child 653 5e50d5bf6d0a
Make the DOM a bit tidier
tests.js
--- a/tests.js	Wed Oct 26 12:31:03 2011 -0600
+++ b/tests.js	Wed Oct 26 12:32:49 2011 -0600
@@ -4806,6 +4806,9 @@
 function doSameCell(tr) {
 //@{
 	tr.className = (" " + tr.className + " ").replace(" active ", "").trim();
+	if (tr.className == "") {
+		tr.removeAttribute("class");
+	}
 
 	var sameCell = document.createElement("td");
 	if (!document.querySelector("#browser-checkbox").checked) {