changeset 2200:fc1c89627178

Fixing dynClass for <tr>s
author Adam Chlipala <adam@chlipala.net>
date Tue, 15 Dec 2015 19:58:52 -0500
parents 251dd276f45f
children 1091227f535a
files lib/js/urweb.js
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/js/urweb.js	Tue Dec 08 17:29:24 2015 -0500
+++ b/lib/js/urweb.js	Tue Dec 15 19:58:52 2015 -0500
@@ -1215,6 +1215,9 @@
     suspendScripts = false;
     var html = dummy.firstChild;
     dummy.removeChild(html);
+    if (pnode == "table" && html.tagName == "TBODY") {
+        html = html.firstChild;
+    }
     addNode(html);
     runScripts(html);