[XHR] responseXML interfaces

Hi!

  The current draft specifies the following algorithm for parsing response
XML:

-------------------------------------------------------
...
3. Parse the response entity body following the rules from the XML
specifications. Let the result be parsed document. If this fails
(unsupported character encoding, namespace well-formedness error et cetera)
terminate these steps return null. [XML] [XMLNS]

4. Return an object implementing the Document interface representing the
parsed document.
-------------------------------------------------------

  Is it intentional that other interfaces are not mentioned at all? Some
browsers create objects implementing HTMLDocument interface, and it is not
entirely obvious how this should be done.

  Even for plain XML documents, following rules from XML specifications may
not be straightforward, for example, some people are surprised that XSL
transformations are not appiled to responseXML.

  If it is not currently feasible to fully specify the behavior, perhaps a
note mentioning that could be added at least.

- WBR, Alexey Proskuryakov

Received on Wednesday, 27 June 2007 12:51:30 UTC