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

Re: Error handling for SVG and MathML in HTML

From: Erik Dahlström <ed@opera.com>
Date: Wed, 19 Mar 2008 16:26:00 +0100
To: "Sam Ruby" <rubys@us.ibm.com>
Cc: "Ben Boyle" <benjamins.boyle@gmail.com>, "HTML WG" <public-html@w3.org>, public-html-request@w3.org
Message-ID: <op.t79rtmvugqiacl@gnorps.palace.opera.no>

On Wed, 19 Mar 2008 13:06:52 +0100, Sam Ruby <rubys@us.ibm.com> wrote:

>
> Erik Dahlström wrote on 03/19/2008 05:08:25 AM:
...
>> I agree that nothing should prevent you from using correct SVG fragments
>
>> inline in html.
>
> Agree in principle, but "nothing" is too strong.  Requiring HTML to  
> support
> "<!ENTITY>" may not be necessary or appropriate.

Agreed. I'll try to clarify what I meant with "correct SVG fragments".

I find it an acceptable trade-off that not every single SVG ever created  
can be copy-pasted into an HTML document. However, any valid SVG document  
fragment that doesn't depend on having XML PI:s or DOCTYPEs prior to the  
root svg element to be a fully XML-wellformed SVG document, should be  
copy-pastable into HTML and should work IMHO. Or in other words: if you  
can copy-paste the svg root (and its children) into a new empty document  
and that is still a valid SVG document, then it should also be work when  
pasted into an HTML document.

This is similar to how SVG inline in any other XML markup would work  
anyway, that is: you can't put XML PI:s in the middle of the document. I  
think it's a non-goal to allow that. If you need that then you should use  
an external file, plain and simple. The same argument holds for DOCTYPE as  
well.

So, given these constraints, is "nothing" still too strong? :)

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
Received on Wednesday, 19 March 2008 15:35:16 GMT

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