locale.inc:

Uses the deprecated element <strike> - should be changed to <span style=\"text-decoration: line-through;\">

Uses the deprecated attribute nowrap - should be changed to style="white-space: nowrap;"

Also, method="POST" should be changed to method="post".

Applying these changes makes the 'manage strings' results page validate as XHTML 1.0 strict.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Junyor’s picture

I'd prefer to see the styling done in drupal.css, rather than inline. +1 for the fix, -1 for the implementation.

wulff’s picture

FileSize
3.05 KB

You are absolutely right. This patch fixes locale.inc.

wulff’s picture

FileSize
424 bytes

...and this one adds the styles to drupal.css.

breyten’s picture

Better, but where did the CSS go? ;) Furthermore, I like semantic markup better, ie. <em class="locale-untranslated"> instead of using spans.

Robrecht Jacques’s picture

+1 for the CSS/class solution.

maybe the class "locale-nowrap" could become a more general class "nowrap" as this could be used in more locations, eg in drupal:

modules/statistics.module:        array('data' => format_date($log->timestamp, 'small'), 'nowrap' => 'nowrap'),
modules/statistics.module:        array('data' => format_date($log->timestamp, 'small'), 'nowrap' => 'nowrap'),
modules/statistics.module:      array('data' => format_date($log->timestamp, 'small'), 'nowrap' => 'nowrap'),

"locale-untranslated" is locale.module dependent, so that one is ok.

wulff’s picture

FileSize
2.3 KB

breyten: Agreed.

Updated patches with fixes for statistics.module attached.

Robrecht Jacques’s picture

You have put 'style' => 'nowrap' instead of 'class' => 'nowrap' on all locations. Small thinko I suppose.
If that's fixed => +1 from me.

wulff’s picture

FileSize
2.3 KB

A thinko indeed. Fixed fixes attached.

drumm’s picture

I'm not sure if this is the right tag for this, but there is a del tag which might be a better alternative to strike. http://www.w3.org/TR/html401/struct/text.html#h-9.4

You can make patchfiles which include multiple files instead of making a zip file which adds an extra step for reviewers.
cvs diff -uF^f misc/drupal.css includes/locale.inc.

Robrecht Jacques’s picture

"del" is not the right tag here. It is not because the default style for "del" is strike-through that it is "correct" to use it if you replacing something with "style=strikethrough". "del" (and "ins") is for document changes, and only for that. Here the strike-through doesn't mean that.

So a "span", or maybe "em" (you put emphasis on the fact that it is untranslated?) is better.

Steven’s picture

Status: Needs review » Fixed

Commited to HEAD.

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)