W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2009

[whatwg] DOM3 Load and Save for simple parsing/serialization?

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 20 May 2009 14:04:50 -0700
Message-ID: <63df84f0905201404q1aebdaeava6552140e00faa4d@mail.gmail.com>
>>> Document.load would be the simplified
>>> load/save method that it would make sense to standardize IMO, since
>>> Firefox
>>> has it and it is needed for Web compatibility. I am concerned though that
>>> Document.load() allows for synchronous network loads.
>> I'm certainly no fan of Document.load() and wish it would go away. In
>> fact we have decided not to add any additional features such as CORS
>> or progress event support in order to discourage its use and move
>> people to XHR instead.
> For better or for worse, enough sites seem to rely on it that we'll likely
> have to implement it in WebKit:
> https://bugs.webkit.org/show_bug.cgi?id=9063
> That says to me that it should likely be standardized in some form, even if
> it is discouraged.

Yeah, probably.

It'd be nice to start deprecating it right away though (by adding a
warning message any time someone is using it in the error console).
However it'd probably take a while before usage has reduced to the
point where we can drop support.

/ Jonas
Received on Wednesday, 20 May 2009 14:04:50 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:12 UTC