On Mon, 2010-02-08 at 21:51 -0800, Linda Walsh wrote:
I don't know about anyone else, but I just found out you can embed SVG instructions right alongside HTML in a web document in FF3.6.
hmm, what? you can inline SVG in XHTML for years already!
http://www.w3.org/QA/2006/07/xhtml_and_svg.html
But to get it to work, you have to flip on the 'html5.enabled=true' in about:config.
You can embed SVG images right inside your html now.
if you include the svg namespace (and it seems even without it), you dont need any modifications to gecko or webkit based browsers (or opera)...
https://developer.mozilla.org/en/SVG_In_HTML_Introduction
Also, the Firebug extension, apparently added support for SVG's namespace to allow tinkering /debugging / seeing how SVG works directly in the browser.
An example of intermixed svg is at: http://burningbird.net/svg/example4.html. If you have it enabled, you see a turquoise shaded panel on either side of the text, otherwise, its white.
hmm, i got firefox 3.5 and no html5.enabled and i still see that SVG in XHTML... so maybe omitting the namespace for SVG is ok for many browsers already...
You don't have to restart the browser to toggle it.
I have the about:config open in a separate window and searched on 'html5'. Brought up brought up 1 result. Double clicking on it toggles the value.
the code has
<p>...</p></div><svg preserveAspectRatio='none" viewBox=0 0 400 250" version=1.1" .. </svg> </body> </html>
doctype at top (no mention of svg -- it's just part of the XHTML).
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head>....
So no more hybrid docs or embedded objects...
it's still a "hybrid", that X in XHTML stands for eXtensible, so we can extend HTML with any namespace we like (and/or the client supports)
Trés cool!
Only works in Firefox 3.6, but other browsers expected to follow suit... so in case you wanted an easy test bed for your SVG outside of inkscape...
works in chrome and opera too...
and you can also open the SVG directly in "any" browsers for a long time now... (and animate/modify with javascript, etc...)
:-)
It's coming!...
if i didn't miss something, it's been here for years ;)
and even MS is at last joining the fun http://blogs.msdn.com/ie/archive/2010/01/05/microsoft-joins-w3c-svg-working-...
cheers .andre