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

>>> 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