aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGravatar Saulo Araujo <saulo2@gmail.com>2016-07-16 14:06:00 -0300
committerGravatar Saulo Araujo <saulo2@gmail.com>2016-07-16 14:06:00 -0300
commitfb5324f8180b089c75f12d165869909db941878f (patch)
tree1b5c79fb689aded584fd06b8a7449e1f25c072e4 /lib
parent885358adcc03e0b4b2599c3d1072c0ac169ed894 (diff)
Fix for "normalizeTable" nesting thead and tfoot in tbody
Diffstat (limited to 'lib')
-rw-r--r--lib/js/urweb.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index 1f44a97b..68e7979d 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -879,10 +879,12 @@ function normalizeTable(table) {
for (script = table.firstChild; script && script != tbody; script = next) {
next = script.nextSibling;
- if (firstChild)
- tbody.insertBefore(script, firstChild);
- else
- tbody.appendChild(script);
+ if (script.tagName === "SCRIPT") {
+ if (firstChild)
+ tbody.insertBefore(script, firstChild);
+ else
+ tbody.appendChild(script);
+ }
}
return;