[whatwg] INS and DEL in lists

Krzysztof Żelechowski giecrilj at stegny.2a.pl
Fri Mar 28 10:07:41 PDT 2008

Dnia 28-03-2008, Pt o godzinie 09:12 -0500, Tab Atkins Jr. pisze:

> >And the original problem can be solved using CSS2;
> >I only wanted to bring a similar example:
> >HTML poorly supports interleaving unrelated markup streams.
> Please, elaborate.  The reason this is a problem is because it *can't*
> be well-solved with CSS.  

How about <LI CLASS="DEL" >?

> On the other hand, mixing together lists and tables doesn't seem to
> have any good semantic interpretation.  

How about bilingual lists that have to be aligned in two columns?

> The reason I objected to that example was because you'd pretty much
> just be jacking the *display* of <ol> for your own purposes, without
> regard to the semantics.  If you just want something numbered without
> giving it proper list semantics, hand-number it or use generated
> content.

On the other hand, once I have a list, I can put it into a table cell.  
Then I translate the list into the neighbouring cell 
and I realise that the translations do not align.  
According to your recipe, 
I have to convert the original list structure to something else, 
something that older browsers do not support well.  
I feel frustrated about that.

> Now, an objection I can think of is that, if <ins>/<del> around <li>
> is allowed, there's no good reason not to allow it around <tr> or <td>
> either, or even <tbody> for that matter.  It would have clear, useful
> semantics, but would likely be a lot more complex.  The following link
> shows that every browser parses it differently, and none of them
> actually pay attention to it:
> http://software.hixie.ch/utilities/js/live-dom-viewer/?%3Ctitle%3EIns%
> 2FDel%20within%20tables%3C%2Ftitle%3E%0D%0A%3C!--%0D%0A%3Cstyle%20type
> %3D%22text%2Fcss%22%3E%0D%0Adel%20%7B%0D%0Adisplay%3A%20none%3B%0D%0A%
> 7D%0D%0A%0D%0Ains%20%7B%0D%0Atext-decoration%3A%20none%3B%0D%0A%7D%0D%
> 0A%3C%2Fstyle%3E%0D%0A--%3E%0D%0A%3Ctable%3E%0D%0A%3Ctr%3E%3Cdel%3E%
> 3Ctd%3EOne%3C%2Ftd%3E%3C%2Fdel%3E%3Cins%3E%3Ctd%3EOne.5%3C%2Ftd%3E%3C%
> 2Fins%3E%3C%2Ftr%3E%0D%0A%3Ctr%3E%3Ctd%3ETwo%3C%2Ftd%3E%3C%2Ftr%3E%0D%
> 0A%3Cdel%3E%3Ctr%3E%3Ctd%3EThree%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Fdel%3E%0D%
> 0A%3Cins%3E%3Ctr%3E%3Ctd%3EThree.5%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Fins%3E%
> 0D%0A%3Ctr%3E%3Ctd%3EFour%3C%2Ftd%3E%3C%2Ftr%3E%0D%0A%3C%2Ftable%3E
> ~TJ

More information about the whatwg mailing list