W3C home > Mailing lists > Public > public-webapi@w3.org > October 2007

Re: XHR data: and javascript: requests

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 04 Oct 2007 16:44:52 -0500
Message-ID: <47055ED4.7040407@mit.edu>
To: Ian Hickson <ian@hixie.ch>
CC: "Web API WG (public)" <public-webapi@w3.org>

Ian Hickson wrote:
> The only special case I can think of is getting an XML or HTML file parsed 
> into a DOM

Frankly, either the innerHTML thing or something like Gecko's DOMParser seems 
like a much much better approach to this than hacking together XMLHttpRequest 
with a data: URI that you then have to generate, etc.

-Boris
Received on Thursday, 4 October 2007 21:45:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:58 GMT