diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-01-14 11:24:17 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-01-14 11:24:17 -0500 |
commit | 792c8adae7f28d9dd80415c7130c2f17122550bf (patch) | |
tree | cb4f73a03b8d1d1eb97c8cab4742b4bed0f1e3e3 /lib/js/urweb.js | |
parent | 82137590b9de8f10a6b0245cc881019baccd5340 (diff) |
Fix bug with 'dynClass' immediately inside <dyn>
Diffstat (limited to 'lib/js/urweb.js')
-rw-r--r-- | lib/js/urweb.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js index ba73e744..adab5f43 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -643,9 +643,10 @@ function parent() { } function addNode(node) { - if (thisScript) - thisScript.parentNode.replaceChild(node, thisScript); - else + if (thisScript) { + if (thisScript.parentNode) + thisScript.parentNode.replaceChild(node, thisScript); + } else lastParent().appendChild(node); } |