- From: Simon Pieters <zcorpan@hotmail.com>
- Date: Fri, 27 Oct 2006 20:09:20 +0000
Hi, The spec says that getting .innerHTML in XML must return a namespace-well-formed XML representation of the element or document. [1] But what should happen when the DOM isn't namespace-well-formed and it can't be fixed by namespace prefix rewriting? E.g., when the DOM contains any of the following?: * A ProcessingInstruction node containing ?> * A Comment node containing -- (or ending with -) * A CDATASection node containing ]]> DOM3 Core says that they "must generate a fatal error during serialization" (or, for the CDATA case, "the cdata section must be splitted before the serialization"). Does that mean raise a SYNTAX_ERR exception? What about when there are illegal characters? Or colons in local names or processing instruction targets? A processing instruction with the target "xml" (in any case combination)? [1] http://whatwg.org/specs/web-apps/current-work/#dynamic1 Regards, Simon Pieters _________________________________________________________________ Dags att flytta till st?rre? http://sokbostad.msn.se
Received on Friday, 27 October 2006 13:09:20 UTC