Re: Hesitation on setAttributeNS

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 UTC