Description
STRIKE, S, and U are deprecated in HTML 4.01, and gives validation error when validating as HTML Strict.
Steps to reproduce
Add overstriked text, and validate.
Example
See MoinMoinFeatures for an example.
Details
MoinMoin Version |
|
OS and Version |
|
Python Version |
|
Server Setup |
|
Server Details |
|
Workaround
Discussion
This will be fixed as part of this larger patch: MoinMoinPatch/FormatterApiConsistencyForHtmlAttributes -- DeronMeranda 2006-01-18 17:47:06
I think those tags are being removed from HTML for a reason. Is it wise to put them into MoinMoin (and even keep adding more)? -- RadomirDopieralski 2006-01-18 18:52:33
The elements such as <strike> are currently deprecated, which means that are technically still in the standard--but it serves as warning that new revisions of the standard may remove them. In this case they are being deprecated because their behavior and semantic meaning can be completely replaced with CSS. So the ability to display text that is striked-out is not going away, just the particular use of <strike> to accomplish that. Also from what I can tell, only <strike> was still being used by moin; <s> and <u> were not (unless you can point me to some part of the code that does). The other patch I mentioned is using <span> instead with CSS classes. -- DeronMeranda 2006-01-18 21:18:00
I suggest just to use the del element instead, which is conforming to the HTML "strict" standard, and semantically more meaningfull than strike (deleted = logial vs. strike through = optical markup). -- MartinBayer 2006-01-20 00:14:09
Perhaps, but I'm leaning toward keeping it styled only. The <del> element is actually intended to carry quite a bit of semantic information that <strike> does not; and I'm not sure that the intent of the --(strike)-- markup was to carry that meaning. This fix was simply to replace the deprecated element with the equivalent CSS (as the HTML spec says to do). The <del> and its companion <ins> may perhaps be useful in some circumstances; but they do not have any standardized visual appearance, and in fact the standard says that browsers may want to not render content inside a <del> at all--so it's not necessarily a good replacement for <strike>. Furthermore their usefulness comes in when you can provide a cite or title attribute. It seems to me those are best for something like showing the differences between two revisions of a page (as an alternative to the "diff" display now). -- DeronMeranda 2006-01-20 15:28:44
Plan
- Priority:
- Assigned to:
- Status: fixed in refactor branch using span / css classes