jQuery.domManip - script tag will be removed
Does anybody know why jQuery removes script tags added to body ?
The problem is if you want to insert dom elements after the own script
tag you can't select the script node any more, because it was removed
by jquery.
It is important by widgets because if I insert dynamically a script
tag and the widget is using document.write - the whole document will
be overwritten.
So I want to insert widget html code after original script tag by
using insertAfter instead of document.write.
Of course I could also isert any div and then access it to insert the
widget code, it is just not so pretty.
I think jquerys domManip method shouldn't remove original script tag,
or it should be possible to add parameter to avoid this.