W3C home > Mailing lists > Public > www-archive@w3.org > February 2009

XMLHttpRequest and HTML5 scripts

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 09 Feb 2009 17:33:21 +0100
To: "Ian Hickson" <ian@hixie.ch>
Cc: www-archive@w3.org
Message-ID: <op.uo3exvf064w2qv@annevk-t60.oslo.opera.com>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:33:34 UTC