mustang2247 / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Custom Attributes not working on USE nodes #459

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

As an example:
node.getAttributeNS("local","draggable") fails to return true when node is 
ifTool below:

<script type="image/svg+xml">
<svg width="100%" height="400" xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink"
 xmlns:svg="http://www.w3.org/2000/svg"
 xmlns:local="local" 
...
  <use id="ifTool" xlink:href="#If" width="70" height="70" x="40" y="290" 
overflow="visible"
                stroke-opacity="0.5" 
local:dragable="true" />

Original issue reported on code.google.com by DeclanMB...@gmail.com on 24 Feb 2010 at 9:09

GoogleCodeExporter commented 8 years ago
Can you make a reduced test case for this issue? Also, namespaces are required 
to be URIs, so make 
it a http:// or urn:// style namespace in your test case. This could also be an 
issue with custom 
namespaces on just the USE node; I imagine thats the issue actually, that the 
custom attribute doesn't 
get copied over to the use node element.

Original comment by bradneub...@gmail.com on 9 Apr 2010 at 2:47

GoogleCodeExporter commented 8 years ago
DeclanMBrennan,
Please provide a test file as requested. I have tested this on various browsers 
and
it works fine. Actually that is good news. SVG Web appears to work well with 
custom
namespaces. Last call before this Issue is closed.

Original comment by grick23@gmail.com on 29 May 2010 at 6:51

GoogleCodeExporter commented 8 years ago

Original comment by grick23@gmail.com on 4 Jun 2010 at 4:20