Robert Longson:
> Yes, but that's not where you're going wrong.
> 
> href is in the xlink namespace and you set it as
> 
> setAttributeNS(<xlinkns>, "href", <value>)
> 
> you don't need to put xlink in twice in two different arguments. You
> get it right with the createElementNS   where you write it as
> createElementNS(<svgNS>, <element>), you don't write
> createElementNS(<svgNS>, "svg:g") do you?

You don’t need to, but you can.

http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-DocCrElNS
http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-ElSetAttrNS

createElementNS and setAttributeNS both take a QName as their second
argument.  It’s used for setting the prefix property of the Node that
gets created, but this prefix doesn’t have to match any namespace prefix
declarations that are in scope at all.  (It’s mostly useless.)

-- 
Cameron McCormack ≝ http://mcc.id.au/


------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to