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 ju

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

2005-08-02 Thread Mark Birbeck
Jim, Sidewinder wouldn't be conformant or non-conformant. We just pass a call to the methods on a DOMImplementation to the implementations that we've instantiated to create that implementation. In the case of an object that 'supports' SVG it would most likely be ASV (although it would depend on th

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 elements should have their content > loaded. Hence the onload should fire. It seems a bit counter to what >

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 XHT

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

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

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

2005-07-28 Thread Mark Birbeck
om/ b: http://internet-apps.blogspot.com/ Download our XForms 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@yahoogr

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

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

2005-07-28 Thread Holger Will
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 > (document.createElementNS('http://www.w3.org/200

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
Jonathan Watt schrieb: > 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: > > v

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 = document.createEleme

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