Re: [VE][html5] <strike> warning should recommend using <s> instead

2014-03-28 21:44, Leif Halvard Silli wrote:

> Indeed. After all, <strike> and <s> are synonyms.
>
> Leif H
>
> j.j., Fri, 28 Mar 2014 19:03:42 +0100:
>> The validator warns about <strike>:
>>
>>   "The strike element is obsolete. Use CSS instead."
>>
>> It should recommend to use <s> instead.

In browser reality, and by HTML 4.01, <strike> and <s> are synonymous, 
but by HTML5 CR, which is what matters here, they are not. The <s> 
element is conforming, whereas <strike> is not, and <strike> has no 
definition.

In the HTML5 logic, which is not very logical, but by which validators 
should work, <strike> is an obsolete, nonconforming, ugly, naughty, 
impure, cursed presentational tag, whereas <s> is a proud Semantic tag. 
By that logic, <s> should be used instead of <strike> only in the very 
special case where the some semantics was meant to be implied by 
<strike> and this accidentally happens to coincide with the semantics of 
<s>.

Yucca

Received on Friday, 28 March 2014 21:11:13 UTC