comparison lib/js/urweb.js @ 1650:1bfd793e7eb8

Add dynamic content before running its scripts, to get IDs in scope; fix generation of Postgres queries with blobs
author Adam Chlipala <adam@chlipala.net>
date Thu, 29 Dec 2011 16:08:34 -0500
parents b0720700c36e
children 1c8456f0cf8c
comparison
equal deleted inserted replaced
1649:9253765d7724 1650:1bfd793e7eb8
810 } 810 }
811 } 811 }
812 } else { 812 } else {
813 firstChild = document.createElement("span"); 813 firstChild = document.createElement("span");
814 firstChild.innerHTML = html; 814 firstChild.innerHTML = html;
815 runScripts(firstChild);
816 if (x.parentNode) 815 if (x.parentNode)
817 x.parentNode.insertBefore(firstChild, x); 816 x.parentNode.insertBefore(firstChild, x);
817 runScripts(firstChild);
818 } 818 }
819 }; 819 };
820 820
821 addNode(x); 821 addNode(x);
822 populate(x); 822 populate(x);