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 | f92a38c957b15bd5c4243d6aba527a1db8edc473 (patch) | |
tree | 310d0a64a16d536b951b44e288a27a1ea6033be6 /lib/js | |
parent | edd64e5edc98649b741dad91ce8c6a902492a1c7 (diff) |
Nicer <active> semantics
Diffstat (limited to 'lib/js')
-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); } }; |