On Sat, 02 Apr 2011 11:36:06 +0200, Robert Longson <[email protected]> wrote:
>> Me thinks W3C is attempting to deprecate xlink:href and allow href to >> also be used. > > 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'll see why it's a better idea to specify "xlink:href" instead of "href" if you try serializing the node with XMLSerializer. -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed ------------------------------------ ----- 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/

