Hi Helder.
Helder Magalhães:
> When using namespace-aware methods, one shouldn't use the prefix.
> Apart from being invalid, it may confuse implementations also!
>
> Invalid:
> > plotCh.setAttributeNS(XMLConstants.XLINK_NAMESPACE_URI, "xlink:href", "#" +
> > type);
> Valid:
> plotCh.setAttribute("xlink:href", "#" + type);
> plotCh.setAttributeNS(XMLConstants.XLINK_NAMESPACE_URI, "href", "#" + type);
On the contrary, I think it is valid to use a prefix for the second
parameter of setAttributeNS() (see
http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElSetAttrNS). It is
also valid to omit the prefix.
--
Cameron McCormack, http://mcc.id.au/
xmpp:[EMAIL PROTECTED] ▪ ICQ 26955922 ▪ MSN [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]