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

Conformance of DL Groups Missing DT or DD

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 26 Feb 2008 11:49:52 +0100
Message-ID: <47C3EED0.90908@lachy.id.au>
To: public-html@w3.org

   The spec isn't entirely clear about the conformance of description 
lists that omit either the dt or dd of a group.

The spec states:

> If a dl element contains only dt elements, then it consists of one group 
> with names but no values, and the document is non-conforming.
> If a dl element contains only dd elements, then it consists of one group 
> with values but no names, and the document is non-conforming.

That makes the following non-conforming:

   <dd>A description without a term

   <dt>A term without a description

> If a dl element starts with one or more dd elements, then the first 
> group has no associated name.
> If a dl element ends with one or more dt elements, then the last group 
> has no associated value.

It is not clear whether the following lists are conforming or not. e.g.

   <dd>A description without a term

   <dd>Term description.

(And similarly for lists ending with <dt>)

Since the list does contain both dt and dd, and contains more than one 
group, it doesn't match either of the first 2 conditions.  Given that 
it's non-conforming for a list to contain only a single group without 
either dt or dd, it would seem logical for any group missing either 
terms or descriptions to be non-conforming as well.  Please make this 
clearer in the spec.

Lachlan Hunt - Opera Software
Received on Tuesday, 26 February 2008 10:50:17 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:30 UTC