Re: XHR LC comments

* Boris Zbarsky wrote:
>> That's true. But it's not what the XHR spec requires:
>> 
>> "Serialize data into a namespace well-formed XML document and encoded 
>> using the encoding given by data.inputEncoding, when not null, or UTF-8 
>> otherwise. Or, if this fails because the Document cannot be serialized 
>> act as if data  is null." -- 
>> <http://dev.w3.org/2006/webapi/XMLHttpRequest/#send>
>> 
>> So the spec requires silent data loss here, which I think is an 
>> extremely bad idea.
>
>Agreed.  I think the spec needs changing to allow this use case, personally...

Being able to send wf-but-ns-illformed documents would not make much
sense if you couldn't also read them back in, and the odds that some
wf-but-ns-illformed has been created deliberately for use with XHR
as opposed to being created due to some mistake, seem too low to make
supporting this worthwhile.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Sunday, 18 May 2008 23:54:03 UTC