W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2006

[whatwg] Allow trailing slash in always-empty HTML5 elements?

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Sat, 02 Dec 2006 11:42:01 -0500
Message-ID: <4571ACD9.9070509@metalab.unc.edu>
Lachlan Hunt wrote:

> HTML 2.0 to 4.01 documents could, in the same way you're insisting on 
> using XML tools on the back end, be reliably parsed using SGML tools. 

Surely you jest. First of all, I believe there was only ever one parser 
that implemented all of the SGML specification, SP from James Clark. In 
practice, SGML documents and parsers were not interoperable. Documents 
and document types were designed to fit the limitations of one specific 

Secondly, anyone who actually tried to use an SGML parser to handle HTML 
  rapidly hit a wall since most HTML documents were not even close to 
actually conformant to the SGML spec or the HTML DTD.

XML, by contrast, learned enough from the experience of SGML to make 
interoperable parsers and documents a reality. It also learned to 
separate well-formedness from validity, which is certainly the single 
most underrated contribution of XML to the field. Well-formedness gives 
80% of the benefit of validity for 20% of the cost. In fact, a lot of 
the time I'd say it gives 120% of the benefit of validity at 20% of the 
cost. Well-formedness sans validity is a large part of extensibility. It 
is what puts the X is XML.

A well-formed XML document is a much lower bar to aim for than a valid 
SGML one.

?Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
Received on Saturday, 2 December 2006 08:42:01 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:50 UTC