W3C home > Mailing lists > Public > www-svg@w3.org > September 2010

RE: Should svg work in less strict html5 documents with an html mime-type?

From: Kevin Ar18 <kevinar18@hotmail.com>
Date: Thu, 2 Sep 2010 20:53:36 -0400
Message-ID: <SNT110-W30D6A6DF63454C48D609BFAA8D0@phx.gbl>
To: <codedread@gmail.com>
CC: <www-svg@w3.org>

I wasn't sure my understanding of the specs was correct.  I guess from your reply you are confirming that Opera is just doing it wrong (doesn't support the feature yet).  In that case, thanks for the info.

From: codedread@gmail.com
Date: Thu, 2 Sep 2010 17:38:06 -0700
To: kevinar18@hotmail.com
CC: www-svg@w3.org
Subject: Re: Should svg work in less strict html5 documents with an html mime-type?

I redact my statements about Chrome 6.  Just tried it and it failed to work (I thought I had read some buzz about it).

IE9 and Firefox 4 are confirmed to work.

IE9 was the first browser to ship a build that supported SVG-in-HTML5 syntax  (in April) followed thereafter by a Firefox 4 alpha.  As I stated, I believe WebKit nightlies might have this feature turned on, but I haven't yet confirmed.

No word from Opera yet :(


On Thu, Sep 2, 2010 at 5:29 PM, Jeff Schiller <codedread@gmail.com> wrote:

Patience Kevin! :)

You're making an assumption that all browsers currently support this.  At the moment the following do (to my knowledge):

- Firefox 4+
- Chrome 6+
- IE9+

Presumably Safari and Opera will soon follow suit.

Someone feel free to correct me if I'm wrong.


On Thu, Sep 2, 2010 at 5:21 PM, Kevin Ar18 <kevinar18@hotmail.com> wrote:

I've noticed that when inserting svg into an html 5 document !DOCTYPE HTML  that svg will not work.
Instead, I have to name the file  file.xhtml and use an xml document with an explicit xhtml namespace (for the html portions) and an explicit svg namespace (for the svg portions).
The following does not work:
Now, I know that HTML does not follow strict xml rules, whereas SVG does.  However, the html5 specs say that svg is supposed to be a valid element even in html documents.  It seems a little bit of a shame to have to turn all html documents into the more strict xml/xhtml conforming version just to use SVG.
It's probably just something that I don't understand... but I wanted to check anyways.

Received on Friday, 3 September 2010 00:54:09 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:22 UTC