[wp-hackers] <del> vs <span style="text-decoration:line-through">
public at toppa.com
Tue Sep 15 11:05:56 UTC 2009
Yes, the del tag is the way to go. It has a purpose that is more than
just putting a line through text. See here:
My guess is that TinyMCE went with the span tag before all the major
browsers supported the del tag, but the major browsers have supported it
for a while now (not all its attributes are supported by all of them
yet, but they all at least render it).
> Message: 1
> Date: Tue, 15 Sep 2009 00:05:17 +0100
> From: John Blackbourn <johnbillion+wp at gmail.com>
> Subject: [wp-hackers] <del> vs <span
> To: wp-hackers at lists.automattic.com
> <1fa535a70909141605w508db36y7fe3b5dff070597b at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> I've just noticed that the Strikethrough button in TinyMCE doesn't use
> the <del> tag as one might expect. It instead uses <span
> style="text-decoration:line-through">. However, when using HTML mode
> in the editor, a <del> tag is used, complete with a datetime
> Surely the <del> tag is the more semantic option? Any opinions?
> Not sure if this is WP-specific or a TinyMCE thing, I've not looked
> into the code yet.
More information about the wp-hackers