Thanks for the response... my exposure to SVG and scripting within
its various implementations had me trying almost exactly that as of a
month ago there was no joy in Safari (or any other browser for the name
space method), but since there have been a few Safari patches
since then, I might give it another go.
Martin Honnen wrote:
Lance Dyas wrote:
var thelink = node.getAttribute("xlink:href")
Assuming the prefix xlink is bound to the namespace URI
http://www.w3.org/1999/xlink you could try
var theLink;
if (typeof node.getAttributeNS != 'undefined') {
theLink = node.getAttributeNS('http://www.w3.org/1999/xlink', 'href');
}
else {
theLink = node.getAttribute('xlink:href');
}
I don't have time to test that now with a Safari browser but if you are
scripting XML with namespace then the namespace relevant methods of DOM
Level 2 like getAttributeNS or getElementsByTagNameNS should be used if
supported by the implementation.
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----