- From: Simon Pieters <simonp@opera.com>
- Date: Wed, 29 Apr 2009 21:27:02 +0200
- To: "public-html@w3.org" <public-html@w3.org>
The spec says: "User agents may adjust prefixes and namespace declarations in the serialization (and indeed might be forced to do so in some cases to obtain namespace-well-formed XML)." "If any of the following error cases are found in the DOM subtree being serialized, then the algorithm raises an INVALID_STATE_ERR exception instead of returning a string:" "A node with a prefix or local name containing a U+003A COLON (":")." -- http://www.whatwg.org/specs/web-apps/current-work/multipage/the-xhtml-syntax.html#xml-fragment-serialization-algorithm If a node has a prefix containing a colon, the UA could can adjust the prefix. Thus, there's no reason to require an exception. i.e. s/prefix or // (I'm not sure it's possible to get a colon in a prefix in the DOM anyway.) -- Simon Pieters Opera Software
Received on Wednesday, 29 April 2009 19:27:45 UTC