timkokes / svgweb

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

Try to find a simpler SVG OBJECT syntax #132

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Right now the SVG OBJECT syntax is a bit complex to aid IE; I think it
might be possible to have a simpler syntax using a dangling semicolon on
the @type attribute that I saw on an old post focused around the IE/Eolas
issue:

<object type="image/svg+xml;" data="foobar.svg"></object>

Evidently the dangling semicolon trick works on other browsers and is
ignored. Do some QA and testing around this to see if it actually works, or
perhaps try some other variations. This will happen once we are on trunk.

Original issue reported on code.google.com by bradneub...@gmail.com on 30 Jun 2009 at 6:12

GoogleCodeExporter commented 9 years ago
I spent a bunch of time on this over the weekend and was unable to get the 
dangling
semicolon trick to work. I also tried a bunch of other styles but they didn't 
work.
Tabling again for now.

Original comment by bradneub...@gmail.com on 6 Jul 2009 at 8:35

GoogleCodeExporter commented 9 years ago
I haven't tested for sure but there's a known trick [1], which involves using 
embed
parameters in object tags, which might help. Basically, it takes advantage of 
IE's
embed/object implementation, which seems to be quite the same (apart from the 
markup
syntax differences, of course). The link [1] has already been referred a few 
times in
SVG Developers... ;-)

[1] http://joliclic.free.fr/html/object-tag/en/object-svg.html

Original comment by helder.magalhaes on 3 Aug 2009 at 5:51

GoogleCodeExporter commented 9 years ago
We should use a syntax similar to what @helder.magalhaes says, which is to do 
what Flash does and have an EMBED inside of an OBJECT.

Original comment by bradneub...@gmail.com on 16 Nov 2010 at 9:41