[whatwg] INS and DEL in lists

Thomas Thomassen thomas at thomthom.net
Sat Mar 29 04:09:44 PDT 2008


In reply to Tab Atkins Jr. http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2008-March/014266.html

"Yes, if you have any insight as to why it is difficult, please share.  As it
is, browsers (specifically, FF2, IE7, and Opera9) seem to handle it just
fine.
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
Note - this is obviously triggering quirks mode.  FF2, in fact, refuses to
style the <ins> and <del> elements if you give the page a proper DOCTYPE.
The other two browsers seem to accept it just fine, though."

When I was testing I was using a strict doctype and primarily used Firefox2. Firefox would style the elements and RightClick->View Page Info says it's in Standards compliance mode. I've never seen invalid markup trigger quirks mode. I thought it was the DOCTYPE, or the lack of it, that controlled that.



Reply to the thread in general:
As I understand it, allowing <del> and <ins> to wrap around list items and other items such as table rows adds some more complexity to the implementators. But is it really so complex that it's worth denying the semantic value of doing such markup?

As for backwards compatibility, I see that wrapping tablerows in <del> currently doesn't work well in browsers. Would that be a show stopper to allow it in the specs? Would that prevent allowing scenarios that *do* work, such as wrapping list items, from entering the specs as it would be all or nothing?

-Thom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20080329/c98d3e88/attachment.htm>


More information about the whatwg mailing list