Fix some silly bugs
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Sun, 29 May 2011 15:38:39 -0600
changeset 188 6b89f193790b
parent 187 06eb622b8eb3
child 189 7e493872a90f
Fix some silly bugs
autoimplementation.html
implementation.js
--- a/autoimplementation.html	Sun May 29 15:26:38 2011 -0600
+++ b/autoimplementation.html	Sun May 29 15:38:39 2011 -0600
@@ -90,7 +90,7 @@
 
 <label><input id=alert-checkbox type=checkbox accesskey=a checked onclick='updateAlertRowStyle()'> Display rows without spec <u>a</u>lerts</label>
 
-<label><input id=browser-checkbox type=checkbox accesskey=b checked> Run <u>b</u>rowser tests as well as spec tests</label>
+<label><input id=browser-checkbox type=checkbox accesskey=b checked onclick='localStorage["display-browser-tests"] = event.target.checked'> Run <u>b</u>rowser tests as well as spec tests</label>
 
 <script>
 // Confusingly, we're storing a string here, not a boolean.
--- a/implementation.js	Sun May 29 15:26:38 2011 -0600
+++ b/implementation.js	Sun May 29 15:38:39 2011 -0600
@@ -3495,7 +3495,7 @@
 
 			// "Fix disallowed ancestors of each member of sublist."
 			for (var i = 0; i < sublist.length; i++) {
-				fixDisallowedAncestor(sublist[i]);
+				fixDisallowedAncestors(sublist[i]);
 			}
 		}
 		break;
@@ -3699,7 +3699,7 @@
 	// "If node is an li and its parent is not an ol, unset its value
 	// attribute, if set."
 	if (isHtmlElement(node, "li")
-	&& !isHtmlElement(node, "ol")) {
+	&& !isHtmlElement(node.parentNode, "ol")) {
 		node.removeAttribute("value");
 	}