<li>, <del> and the HTML 4 DTD (was: Re: RFD: amendment of Debian Social Contract)
Richard Braakman wrote:
> Hmm, that might be a disagreement between browsers. I have a <del>
> tag around all of section 5, which causes it to be shown struck through
> on my browser (Mozilla). It might have been improper to put <del>
> around a whole <li> that way. I changed it by moving the deletions
> inside the <p> elements, which (somewhat awkwardly) marks all the
> text as deleted but not the list item itself. How is it now?
> (Purists can find the appropriate part of the HTML spec at
> which does say that <ins> and <del> can be used as either inline
> or block-level elements, depending on context. Maybe <li> has
> an odd status that prevents this use.)
<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>.
Frank Lichtenheld <firstname.lastname@example.org>