Re: Prefixes and serializing XML

On Thu, 30 Apr 2009 00:13:08 +0200, Ian Hickson <ian@hixie.ch> wrote:

> On Wed, 29 Apr 2009, Simon Pieters wrote:
>>
>> 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 (":")."
>
> Fair enough.
>

-   <li>A node with a prefix or local name containing a U+003A COLON
-   (":").</li>
+   <!--<li>A node with a prefix or local name containing a U+003A
+   COLON (":").</li> (prefixes can get adjusted, so this isn't an
+   excuse) -->

You can't adjust the local name, so that part should remain.

-- 
Simon Pieters
Opera Software

Received on Thursday, 30 April 2009 06:06:40 UTC