Hi Sebastian,Sorry no, it isn't! I've updated my test page with this technique (DOM-post-single-elem). In Firefox only the first script gets loaded and parsed. In Opera the first script gets loaded multiple times. In IE6 only the last script gets loaded. And even if it worked, I believe classes would again lose their relationship with the original source files, since the single script element would only point to the last source loaded. In general I think it is completely OK to use document.write in Internet Explorer as long as the browser supports this. Maybe after some years it really supports XHTML. It is also OK to switch afterwards I think. So I would say:Yes, I am: here the three majors agree: FireFox, Opera and IE6 all ignore <script> tags added by innerHTML to head or body while loading the document; that is, they create the corresponding DOM nodes, but they seem not to parse the related _javascript_: you can try it yourself by clicking on the innerHTML link on my test page. This puzzles me too. IMHO this behavior is due to the fact that document.write() always appends new code *after* the current parsing point (I guess it could push text into the buffer used while reading the document), so newly added script tags get handled only when control comes back from the _javascript_ interpreter to the HTML parser which can easily handle them by calling the _javascript_ interpreted again, as if they were in the original document source from the beginning. On the contrary, innerHTML acts on the DOM node, out of the parsing stream: new code assigned to innerHTML needs to be parsed and script tags have to be handed to the _javascript_ interpreter while it is still running the code which is acting on the innerHTML attribute, so the interpreter should be somewhat reentrant, and probably it isn't. It's just an hypothesis, though. There are also plans to improve the demo section even more. Maybe we find another solution in some month, but for now this is completely OK.Ok, thank you. In the next few days I will be cleaning up the code, and I hope to commit all changes by the end of the week. Alessandro |
begin:vcard
fn:Alessandro Sala
n:Sala;Alessandro
email;internet:alessandro {dot} sala {at} mclink {dot} net
version:2.1
end:vcard------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
