On Fri, Mar 28, 2008 at 6:02 AM, Keryx Web &lt;<a href="mailto:webmaster@keryx.se">webmaster@keryx.se</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Henri Sivonen skrev:<br>
<div class="Ih2E3d"><br>
&gt; For various legacy parsing reasons and in the table case for CSS table<br>
&gt; model reasons, this kind of thing is seriously more trouble for<br>
&gt; implementors than it is worth. From an implementation cost/benefit point<br>
&gt; of view, I am against allowing ins/del in more places.<br>
&gt;<br>
<br>
</div>But from what I&#39;ve understood it actually works as expected today (in<br>
lists). Not that I&#39;ve yet tested this exhaustively.<br>
<br>
Allowing list markup in tables seems to be a nightmare to spec and<br>
implement - and teach! Ins and del in tables is no priority of mine either.<br>
<br>
<br>
Lars Gunther<br>
</blockquote></div>Yes, if you have any insight as to why it is difficult, please share.&nbsp; As it is, browsers (specifically, FF2, IE7, and Opera9) seem to handle it just fine.<br><a href="http://software.hixie.ch/utilities/js/live-dom-viewer/?%3Ctitle%3EIns%2FDel%20within%20lists%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%3Col%3E%0D%0A%09%3Cli%3EOne%3C%2Fli%3E%0D%0A%09%3Cdel%3E%3Cli%3ETwo%3C%2Fli%3E%3C%2Fdel%3E%0D%0A%09%3Cli%3EThree%3C%2Fli%3E%0D%0A%09%3Cins%3E%3Cli%3EThree.5%3C%2Fli%3E%3C%2Fins%3E%0D%0A%09%3Cli%3EFour%3C%2Fli%3E%0D%0A%3C%2Fol%3E">http://software.hixie.ch/utilities/js/live-dom-viewer/?%3Ctitle%3EIns%2FDel%20within%20lists%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%3Col%3E%0D%0A%09%3Cli%3EOne%3C%2Fli%3E%0D%0A%09%3Cdel%3E%3Cli%3ETwo%3C%2Fli%3E%3C%2Fdel%3E%0D%0A%09%3Cli%3EThree%3C%2Fli%3E%0D%0A%09%3Cins%3E%3Cli%3EThree.5%3C%2Fli%3E%3C%2Fins%3E%0D%0A%09%3Cli%3EFour%3C%2Fli%3E%0D%0A%3C%2Fol%3E</a><br>
Note - this is obviously triggering quirks mode.&nbsp; FF2, in fact, refuses to style the &lt;ins&gt; and &lt;del&gt; elements if you give the page a proper DOCTYPE.&nbsp; The other two browsers seem to accept it just fine, though.&nbsp; <br>
<br>In DOM terms, both FF and Opera create a well-formed, identical tree.&nbsp; IE does something... weird.&nbsp; I don&#39;t really understand what&#39;s going on there in the DOM, mainly because I&#39;ve never seen a red tagname before.&nbsp; However, it obviously styles things correctly.&nbsp; Note, though, that IE drops the tags when it displays the InnerHTML.&nbsp; Odd.<br>
<br>&gt;I like the idea of a list header, maybe &lt;lh&gt;<br>No need to add a new element.&nbsp; Some simple experimentation shows that all major browsers will accept a simple &lt;h1&gt;.&nbsp; That still communicates the semantics you want, without any backwards-compatibility issues.<br>
<br>
<br>&gt;&gt; I doubt this is something we&#39;d ever want in HTML. &nbsp;CSS3 can do this<br>
&gt;&gt; just fine with generated content and counters, though.<br>
&gt;<br>
&gt;And the original problem can be solved using CSS2;<br>
&gt;I only wanted to bring a similar example:<br>
&gt;HTML poorly supports interleaving unrelated markup streams.<br>Please, elaborate.&nbsp; The reason this is a problem is because it *can&#39;t* be well-solved with CSS.&nbsp; If the &lt;ins&gt;/&lt;del&gt; is used *within* an &lt;li&gt; then it breaks the numbering of &lt;ol&gt; when you hide the &lt;del&gt;&#39;d elements.&nbsp; The semantics are wrong as well - it indicates that you have a list item with deleted text, not a deleted list item.&nbsp; The ability to wrap &lt;ins&gt;/&lt;del&gt; around &lt;li&gt; solves a specific semantic issue and a display issue as well.<br>
<br>On the other hand, mixing together lists and tables doesn&#39;t seem to have any good semantic interpretation.&nbsp; The reason I objected to that example was because you&#39;d pretty much just be jacking the *display* of &lt;ol&gt; for your own purposes, without regard to the semantics.&nbsp; If you just want something numbered without giving it proper list semantics, hand-number it or use generated content.<br>
<br>Now, an objection I can think of is that, if &lt;ins&gt;/&lt;del&gt; around &lt;li&gt; is allowed, there&#39;s no good reason not to allow it around &lt;tr&gt; or &lt;td&gt; either, or even &lt;tbody&gt; for that matter.&nbsp; It would have clear, useful semantics, but would likely be a lot more complex.&nbsp; The following link shows that every browser parses it differently, and none of them actually pay attention to it:<br>
<a href="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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