You 're right. In Opera it works ok.
In the modern browser and the upcoming Firefox the noFilter() running but 
not(!) in old Konqueror.

Here is a little example: 
http://labs.pixelfans.de/Twitterbird2_withJS.svg


--- In [email protected], "Chris Peto" <svg...@...> wrote:
>
> Hi,
> 
>  
> 
> document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Filte
> r", "1.1")
> 
>  
> 
> Comes back true in Opera, all others false.
> 
>  
> 
> Cheers,
> 
> Chris
> 
>  
> 
> From: [email protected] [mailto:[email protected]]
> On Behalf Of Andreas
> Sent: Donnerstag, 25. November 2010 09:46
> To: [email protected]
> Subject: [svg-developers] hasFeature doesn't work with Filter
> 
>  
> 
>   
> 
> This should work, but it doesn't. 
> <script type="text/ecmascript">
> <![CDATA[
> function noFilter() {
> document.getElementById("highlight").setAttributeNS(null,"opacity",0)
> }
> 
> function init() {
> if
> (!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Fil
> ter", "1.1")) noFilter();
> }
> window.onload = init;
> // ]]>
> </script>
> 
> What's wrong?
> 
>  
> 
> 
> 
> [Non-text portions of this message have been removed]
>




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

-----
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