[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: <li>, <del> and the HTML 4 DTD (was: Re: RFD: amendment of Debian Social Contract)



On Thu, Oct 30, 2003 at 06:55:43PM +0100, Frank Lichtenheld wrote:
> <li> must be in a <ul> or a <ol> which themself must not contain tags 
> other than <li> directly. So <li> must not have other parent elements
> than <ul> or <ol>, i.e. no <del>.

Yeah, but the BODY element is defined like this:

<!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->

The +(INS|DEL) part means that INS and DEL can occur anywhere in 
a BODY or its children.  If you examine the DTD[1] you will see
that INS and DEL are not specifically mentioned anywhere else.
A comment above the INS|DEL definition says:
<!-- INS/DEL are handled by inclusion on BODY -->

This "inclusion" is an SGML concept that disappeared from XML,
so it is little-known.

Richard Braakman,
claiming extra pedant points today.

[1] http://www.w3.org/TR/REC-html40/sgml/dtd.html



Reply to: