W3C home > Mailing lists > Public > www-svg@w3.org > July 2009

Re: [svg-developers] Re: Forcing browsers to render SVG in text/html context

From: Bradley Neuberg <bradneuberg@gmail.com>
Date: Wed, 22 Jul 2009 15:53:14 -0700
Message-ID: <6eb4ab40907221553o70563abai8c65059b7cb63945@mail.gmail.com>
To: svg-developers@yahoogroups.com
Cc: Robin Berjon <robin@berjon.com>, www-svg WG <www-svg@w3.org>
>
> Cool! :-) I've made a set of somehow related experiments, a couple of
> months ago, but wasn't able to publish anything interesting about it
> yet... :-( The idea was to use IE8's improved namespace support [1]
> to allow SVG-in-HTML integration, triggering a SVG rendering plug-in
> (currently only ASV seems to work properly) whenever SVG content is
> found (through an XML namespace declaration). Unfortunately, the
> approach seems to work as expected cross-browser only in text/xml,
> whereas in text/html (ironically) only IE seems to work... I really
> need to find more time to make a few more experiments. :-)

Strangely, all versions of IE do better with unknown markup in the
page than Firefox and Safari.

>
> Regarding the implementation, I've noticed that the approach seems to
> use cloneNode: I recall Holger Will presenting a similar, XSLT-based
> approach a while ago [2] (see "Handle Internet Explorer"). Also, in
> the documentation it's stated that "In Internet Explorer it should do
> basically nothing." [3]: I'm getting an error in IE8 [4] (on Windows
> XP SP3) while visiting the demo. Perhaps using the IE-way of doing DOM
> parsing [5], combined with the (proprietary) import [6] statement,
> then IE+ASV could be supported also... But who cares? ;-D
>

The SVG Web project I'm working on with others can hopefully provide
an alternative to the Adobe ASV plugin:
http://code.google.com/p/svgweb

>> [...] Sorry about the delay, my daughter was born which caused
>> distraction ;-)
>
> Congratulations!!! :-)
>
> Best regards,
> Helder
>
> P.S.: Is 2017 [7] your lucky number? ;-)
>
> [1] http://msdn.microsoft.com/en-us/library/dd565690(VS.85).aspx
> [2] http://www.treebuilder.de/default.asp?file=621700.xml
> [3] http://berjon.com/hacks/force-svg/
> [4] Message: 'DOMParser' is undefined
> Line: 107
> Char: 9
> Code: 0
> URI: http://berjon.com/js/force-svg.js
> [5] http://www.w3schools.com/Dom/dom_parser.asp
> [6] http://www.schepers.cc/inlinesvg.html
> [7] http://berjon.com/js/force-svg.js
> __._,_.___
> Messages in this topic (7) Reply (via web post) | Start a new topic
> Messages | Files | Photos | Polls | Calendar
> -----
> To unsubscribe send a message to: svg-developers-unsubscribe@yahoogroups.com
> -or-
> visit http://groups.yahoo.com/group/svg-developers and click "edit my
> membership"
> ----
> MARKETPLACE
> Mom Power: Discover the community of moms doing more for their families, for
> the world and for each other
> Change settings via the Web (Yahoo! ID required)
> Change settings via email: Switch delivery to Daily Digest | Switch format
> to Traditional
> Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
> Recent Activity
>
>  5
> New Members
>
> Visit Your Group
> Yahoo! Finance
>
> It's Now Personal
>
> Guides, news,
>
> advice & more.
>
> Search Ads
>
> Get new customers.
>
> List your web site
>
> in Yahoo! Search.
>
> Y! Groups blog
>
> the best source
>
> for the latest
>
> scoop on Groups.
>
> .
> __,_._,___
Received on Thursday, 23 July 2009 05:51:02 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:42 GMT