W3C home > Mailing lists > Public > public-html@w3.org > July 2008

Re: SVG in HTML proposal

From: Toby A Inkster <tai@g5n.co.uk>
Date: Thu, 17 Jul 2008 15:00:15 +0100
Message-Id: <61B4D775-1F80-4672-B57E-A1B0F912B32E@g5n.co.uk>
To: public-html@w3.org, www-svg@w3.org

Just an idea, but how about this:

<script type="image/svg" id="myImage">
<![CDATA[
   <svg ...> ... </svg>
]]>
</script>

<img src="#myImage">

Allows the same SVG image to be re-used several times on the same  
page without bloating the file size.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Thursday, 17 July 2008 14:01:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:19 GMT