After fiddling for a while here I've figured out a way to at least test whether 
the browser supports foreignObject. This is done by using the 
"requiredFeatures" attribute rather than "requiredExtensions" like so:


<switch>
  <foreignObject width="100" height="50" 
requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility";>
    <!-- whatever external user-agent stuff -->
  </foreignObject>

  <!-- Alternate SVG content if foreignObject is not supported -->
</switch>

This isn't perfect as the user-agent may not support the namespace that you 
attempt to use even though it supports foreignObject. However, I think it's 
safe to assume that, if the user-agent supports foreignObject, it will at least 
support XHTML and MathML.

--- In [email protected], "dark3251" <dark3251@...> wrote:
>
> I should note that I've already attempted linking to both the xhtml namespace 
> and the xhtml-transitional/xhtml-strict DTD's with no luck. 
> 
> --- In [email protected], "dark3251" <dark3251@> wrote:
> >
> > I am trying to create an alternative display for user-agents that don't
> > support <foreignObject>. There is a pretty good example in the SVG
> > documentation here: Example
> > <http://www.w3.org/TR/SVG/extend.html#AnExample>
> > The most important line is: <foreignObject width="100" height="50"
> > requiredExtensions="http://example.com/SVGExtensions/EmbeddedXHTML";>
> > However, under the "requiredExtensions" attribute of the <foreignObject>
> > there is an example placeholder... What would I actually put here to
> > denote that xhtml is the requiredExtension?
> > 
> > 
> > [Non-text portions of this message have been removed]
> >
>



------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to