[whatwg] How to use SVG in HTML5?

On Jan 24, 2008 8:23 AM, James Graham <jg307 at cam.ac.uk> wrote:

> In browsers which support it <img src="foo.svg"> will work (with certain
> limitations for security reasons). If you want to embed svg inline like you can
> with XHTML, that's not currently supported, although several people have
> expressed an interest in changing that. However there are significant technical
> barriers to overcome at the syntax/parser level.

Could you elaborate on these barriers? I would really like to see inline SVG.

I also notice that 3.3.3.6 mentions something related:

"Elements that are from namespaces other than the HTML namespace and
that convey content but not metadata, are embedded content for the
purposes of the content models defined in this specification. (For
example, MathML, or SVG.)"

Is this section out-of-date? Or does it refer only to elements which
have been loaded into the DOM by some means other than being included
in the source (e.g. in accordance with 4.8.2, Page load processing
model for XML files)?

Thanks,

--Eli

Received on Wednesday, 23 January 2008 20:41:58 UTC