del and ins
Tuesday, 1 February 2011 17:34I updated an old entry of mine and marked up the change with the HTML tags <del> and <ins>, indicating that I first deleted some content and then inserted some new content.
Based on my previous experience of browser renderings, I expected the deleted content to have a line through it and the newly-inserted content to have a line underneath it.
However, when I viewed the entry in three different browsers, I saw that behaviour only in MSIE (6.0, in case that matters). Firefox showed no text decoration at all and Chrome only decorated the inserted text with an underline, but not the deleted text with a line-through.
Odd.
For reference, here’s some deleted text and some inserted text.
(Incidentally, I wonder whether the curious behaviour stems from the fact that I didn’t just use the plain tag, but I added cite and datetime attributes to point to the reasoning for the change and to mark up when the change was made. Test: deleted text with and inserted text with cite and datetimecite and datetime; deleted text with and inserted text with cite but no datetimecite and datetime; deleted text with no and inserted text with no cite but with datetimecite but with datetime.)
(And in case it’s different between LiveJournal and Dreamwidth, due to the different site stylesheets, cross-links: LiveJournal version of this entry; Dreamwidth version of this entry.)
Edit: FWIW, Opera shows the old entry the way I expected. Yay :)
no subject
Date: Tuesday, 1 February 2011 17:07 (UTC)no subject
Date: Tuesday, 1 February 2011 17:15 (UTC)Which browser are you using (on which OS)? Are you viewing the entry page in site style, light style, your style, my style?
(I use style=site globally. When I force style=mine, I see underlines for inserted text here, too.)
no subject
Date: Tuesday, 1 February 2011 17:18 (UTC)I see them on http://pne.livejournal.com/946628.html , but not on http://pne.livejournal.com/236847.html and I view all three with no further style arguments while logged in with my Dreamwidth/OpenID.
no subject
Date: Wednesday, 2 February 2011 09:26 (UTC)no subject
Date: Wednesday, 2 February 2011 10:36 (UTC)In principle, no, but I've heard that IE6 was a bit odd (and not so standards-conforming) on some points, compared to the later versions, so it's still good to know. Thanks!