XMLHttpRequest and HTML5 scripts

I'm trying to figure out how to deal with XMLHttpRequest and base URLs  
again. It seems like I should say that the XMLHttpRequest interface object  
is associated with the (current?) script's base URL and that the script's  
character encoding for the purposes of XMLHttpRequest must be assumed to  
be UTF-8. Does that make sense?

Does that still make sense once you do this

   window.XMLHttpRequest = frames[1].XMLHttpRequest

... That is, will window.XMLHttpRequest still be associated with the base  
URL of the script from frames[1]?

If this is possible it should remove the dependency on Window and make  
XMLHttpRequest work better with Web Workers and elsewhere.


Apart from that there's a theoretical problem with <svg:script>, namely  
that it does not create the same concepts.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Monday, 9 February 2009 16:36:16 UTC