W3C home > Mailing lists > Public > public-webapi@w3.org > May 2008

Re: XHR LC comments

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 19 May 2008 02:28:36 +0200
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: "Web API WG (public)" <public-webapi@w3.org>
Message-ID: <d1i1345dnef8sssk41tumpnbgvnf4ppdtd@hive.bjoern.hoehrmann.de>

* Boris Zbarsky wrote:
>Bjoern Hoehrmann wrote:
>> Being able to send wf-but-ns-illformed documents would not make much
>> sense if you couldn't also read them back in
>
>Which you can, with a non-NS-aware XML parser.

My point was that the XHR draft currently requires using a namespace-
aware one, so for both writing and reading, you would have to change
two parts of the draft.

>The problem is that figuring out whether a DOM fragment can usefully
>be serialized as a ns-wellformed string is a bit of a pain.

Could you elaborate on this point? You need to serialize the document
before starting to send it, to ensure that changes to it do not affect
what is being sent, to set the Content-Length header, etc., and you
can rather easily check for ns-wf during serialization if you implement
the serialization yourself, so this does not seem like a problem. Even
if you cannot do it during serialization, the algorithm to do it on the
document object is relatively simple aswell.
-- 
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 Monday, 19 May 2008 00:29:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 19 May 2008 00:29:17 GMT