del and ins

Tuesday, 1 February 2011 17:34
pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)
[personal profile] pne

I 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 cite and datetime and inserted text with cite and datetime; deleted text with cite but no datetime and inserted text with cite and datetime; deleted text with no cite but with datetime and inserted text with no cite 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 :)

Date: Tuesday, 1 February 2011 17:07 (UTC)
yvi: Kaylee half-smiling, looking very pretty (Default)
From: [personal profile] yvi
Hmmm, I don't see anything in http://pne.livejournal.com/236847.html , but I do see underlines and striked-through text on this entry and the cross-link.

Date: Tuesday, 1 February 2011 17:18 (UTC)
yvi: Kaylee half-smiling, looking very pretty (Default)
From: [personal profile] yvi
I use IceWeasel (Firefox) 3.5.

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.

Date: Wednesday, 2 February 2011 09:26 (UTC)
schnurble: (Default)
From: [personal profile] schnurble
I'm using IE7 and it shows all deletions striked through and inserts underlined, both here and in the other entry. But I suppose this is no big surprise when IE6 did this as well :o)

Profile

pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)
Philip Newton

June 2015

S M T W T F S
 12 3456
78910111213
14151617181920
2122232425 2627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Monday, 5 January 2026 09:25
Powered by Dreamwidth Studios