On Mon, 07 Jan 2008 21:23:50 +0100, Andreas Neumann  
<[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I have an example at http://www.carto.net/neumann/temp/loadCss.svg
> where I use javascript to change the reference to an external CSS
> file by removing and creating a processingInstruction and appending
> it before the root element.
>
> This works fine in Firefox and Batik, but fails in Opera and Safari.
> I don't dare to ask about IE/ASV, but I hope to find a way to make
> this possible in Opera and Safari?

Hi Andreas,
this has been reported as bug 182051, and it's not news. We hope to make  
it work in the near future.
You might be able to work around the problem by using html:link elements  
if you wrap svg in html, something like this seemed to work at least in  
HTML:

   <link id="link" href="css1.css" rel="stylesheet"/>
   document.getElementById("link").setAttribute("href", "css2.css");

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
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:
    mailto:[EMAIL PROTECTED] 
    mailto:[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