W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2003

Re: Hesitation on setAttributeNS

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Wed, 10 Dec 2003 13:14:40 -0500
To: Robin Berjon <robin.berjon@expway.fr>
Cc: Andrew Clover <and-w3@doxdesk.com>, www-dom@w3.org, www-dom-request@w3.org
Message-ID: <OF7D69B81F.492034B6-ON85256DF8.0063DC63-85256DF8.00643865@us.ibm.com>





Yes, Namespaced *attributes* do indeed require prefixes in XML syntax
(there's no "default namespace" for attributes).

But attribute nodes in the DOM do not require prefixes.

When serializing namespaced-but-not-prefixed attributes from DOM to XML
syntax, the serializer must fix this up. See the Level 3 working draft for
its algorithms; if you're working with an earlier implementation of the
DOM, you can and should implement those or something equivalent in your own
serializer code.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk
Received on Wednesday, 10 December 2003 13:18:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:57 GMT