W3C home > Mailing lists > Public > spec-prod@w3.org > January to March 2012

Re: Fall mechanisms (Re: [Pubrules] Changes to enable use of HTML5)

From: Philippe Le Hegaret <plh@w3.org>
Date: Wed, 14 Mar 2012 11:29:26 -0400
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Cameron McCormack <cam@mcc.id.au>, spec-prod <spec-prod@w3.org>
Message-ID: <1331738966.6050.469.camel@chacal>
On Wed, 2012-03-14 at 07:51 -0700, Tab Atkins Jr. wrote:
> Here's something even simpler:
> 
> <!doctype html>
> <figure>
>   <svg>
>     <defs>
>       <foreignObject>
>         <img src="fallback.png" />
>       </foreignObject>
>     </defs>
>     ...real image here
>   </svg>
>   <figcaption>I'm an image!</figcaption>
> </figure>
> 
> In UAs that support SVG, the <img> will never be rendered.  In UAs
> that don't, you'll just get an <img> wrapped up in a bunch of unknown
> inline elements.


but if you have a text element in your SVG, that text node will be
visible if the agent doesn't understand inline SVG, leading to messy
text.

Philippe
Received on Wednesday, 14 March 2012 15:29:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 14 March 2012 15:29:38 GMT