[svg-developers] Re: Detect native SVG support

2005-08-02 Thread Jim Ley
Mark Birbeck [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] But as you know, the SVG spec defines a large number of possible values to test for with DOMImplementation, not just do you have SVG?. So ideally we should be able to test for the language features we want, without using

RE: [svg-developers] Re: Detect native SVG support

2005-08-02 Thread Mark Birbeck
Message- From: svg-developers@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Ley Sent: 02 August 2005 18:30 To: svg-developers@yahoogroups.com Subject: [svg-developers] Re: Detect native SVG support Mark Birbeck [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED

Re: [svg-developers] Re: Detect native SVG support

2005-08-02 Thread Bjoern Hoehrmann
* Mark Birbeck wrote: As to adding more and more hacks, no one doubts that you can keep adding another line of script to test for yet another permutation. But as the world of compound documents gets closer, don't you think that there needs to be a generic solution that allows for testing not just

RE: [svg-developers] Re: Detect native SVG support

2005-07-29 Thread Mark Birbeck
Jonathan, ... and Mozilla happily returns true for both tests. That's excellent news. I hadn't tried it, but that's good to hear. We've also (almost) got the same thing working in our Sidewinder Viewer, so hopefully this can become a general test that will indicate that you can simply send

Re: [svg-developers] Re: Detect native SVG support

2005-07-29 Thread Holger Will
Jonathan Watt schrieb: I'm told that we are doing the right thing, and that not render doesn't mean not parse. Alternative content should still appear in the DOM as usual, and any img elements should have their content loaded. Hence the onload should fire. It seems a bit counter to what

[svg-developers] Re: Detect native SVG support

2005-07-29 Thread Martin Honnen
--- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED] wrote: You're quite right of course. This would be the *real* way to do it, and Mozilla happily returns true for both tests. But Mozilla gives true whether the preference svg.enabled is true or not so currently the check

Re: [svg-developers] Re: Detect native SVG support

2005-07-28 Thread Jonathan Watt
First off, I've noticed that my suggested script doesn't work in IE6 since it doesn't seem to implement createElementNS. To prevent a script error I'll revise my script to: var hasNativeSVG = false; try { if (document.createElementNS('http://www.w3.org/2000/svg','svg').width) hasNativeSVG =

Re: [svg-developers] Re: Detect native SVG support

2005-07-28 Thread Holger Will
Holger Will schrieb: Jonathan Watt schrieb: First off, I've noticed that my suggested script doesn't work in IE6 since it doesn't seem to implement createElementNS. To prevent a script error I'll revise my script to: var hasNativeSVG = false; try { if

RE: [svg-developers] Re: Detect native SVG support

2005-07-28 Thread Mark Birbeck
processor from http://www.formsPlayer.com/ -Original Message- From: svg-developers@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Holger Will Sent: 28 July 2005 19:38 To: svg-developers@yahoogroups.com Subject: Re: [svg-developers] Re: Detect native SVG support Holger

Re: [svg-developers] Re: Detect native SVG support

2005-07-28 Thread Jonathan Watt
Hi Mark, You're quite right of course. This would be the *real* way to do it, and Mozilla happily returns true for both tests. Opera doesn't support scripting of SVG (yet) I believe, so the test won't work for it, but as far as *script* testing goes this is definately the way to do it. Thanks!

Re: [svg-developers] Re: Detect native SVG support

2005-07-28 Thread Jonathan Watt
I'm told that we are doing the right thing, and that not render doesn't mean not parse. Alternative content should still appear in the DOM as usual, and any img elements should have their content loaded. Hence the onload should fire. It seems a bit counter to what you'd expect, but there you go.

[svg-developers] Re: Detect native SVG support

2005-07-27 Thread jophof007
Hi, Sounds as a solution. But Mozilla is trying to implement zoom and pan things so a viewbox will appear in future I think. It is not that easy to determine. John --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED] wrote: Perhaps something like var hasNativeSVG =

Re: [svg-developers] Re: Detect native SVG support

2005-07-27 Thread Jonathan Watt
Hi John, Mozilla has supported the 'viewBox' property for a long time, but let's forget about that. It would actually be better to use a property that will almost certainly be implemented - the 'width' property seems like a good candidate. So you would use: var hasNativeSVG =

[svg-developers] Re: Detect native SVG support

2005-07-24 Thread Martin Honnen
--- In svg-developers@yahoogroups.com, Holger Will [EMAIL PROTECTED] wrote: jophof007 schrieb: Does anyone has a solution on detecting native svg support. Deer park Alpha 2 supports native svg. How can a client javascript detect that deerpark alpha 2 is running or how can a client

Re: [svg-developers] Re: Detect native SVG support

2005-07-24 Thread Holger Will
Martin Honnen schrieb: --- In svg-developers@yahoogroups.com, Holger Will [EMAIL PROTECTED] wrote: jophof007 schrieb: Does anyone has a solution on detecting native svg support. Deer park Alpha 2 supports native svg. How can a client javascript detect that deerpark alpha 2 is