diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-07-22 09:42:17 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-07-22 09:42:17 -0400 |
commit | 2efa6af70a4b42a98360bec539e327031dc1d3dc (patch) | |
tree | 310d0a64a16d536b951b44e288a27a1ea6033be6 /lib | |
parent | 67e203426abe889946a755ba95dfa4e856348ec4 (diff) |
Nicer <active> semantics
Diffstat (limited to 'lib')
-rw-r--r-- | lib/js/urweb.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 87adc0a3..1f003fc3 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -803,7 +803,6 @@ function dyn(pnode, s) { var dummy = document.createElement("body"); dummy.innerHTML = "<table>" + html + "</table>"; - runScripts(dummy); var table = x.parentNode; if (table) { @@ -831,12 +830,12 @@ function dyn(pnode, s) { for (var node = tbody.firstChild; node; node = next) { next = node.nextSibling; table.insertBefore(node, x); + runScripts(node); } } } else if (pnode == "tr") { var dummy = document.createElement("body"); dummy.innerHTML = "<table><tr>" + html + "</tr></table>"; - runScripts(dummy); var table = x.parentNode; if (table) { @@ -854,14 +853,15 @@ function dyn(pnode, s) { for (var node = tr.firstChild; node; node = next) { next = node.nextSibling; table.insertBefore(node, x); + runScripts(node); } } } else { firstChild = document.createElement("span"); firstChild.innerHTML = html; - runScripts(firstChild); if (x.parentNode) x.parentNode.insertBefore(firstChild, x); + runScripts(firstChild); } }; |