W3C home > Mailing lists > Public > www-svg@w3.org > January 2005

Re: SVG12: Improper XHTML 1.0 documents

From: Philippe Lhoste <PhiLho@GMX.net>
Date: Tue, 11 Jan 2005 00:02:54 +0100
Message-ID: <41E3099E.8000204@GMX.net>
To: Chris Lilley <chris@w3.org>
CC: Bjoern Hoehrmann <derhoermi@gmx.net>, www-svg@w3.org

Chris Lilley wrote:
 > Actually, the hack of using a space before the trailing slash is only
 > needed when there are no attributes. Even the dumbest html 'parser'
 > doesn't think the element name includes a slash character if there are
 > attributes.

Interesting, I read in the past that the <br /> syntax was indeed made 
to be supported by old Netscape browsers (4.x), but I don't remember 
about this attribute thingy.

I tested, and indeed the <img src="s"/> form is well supported while the 
<br/> form isn't (ie. the tag is ignored).

Good to know.

Note I was amused to see numerous SVG files with a space before the 
trailing slashes, while I believe they are only required in XTHML, not 
in pure XML. Probably an old habit hard to discard.

Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --
Received on Monday, 10 January 2005 23:04:54 UTC

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