Author: peter.moulder
Description:
http://en.wikipedia.org/wiki/Mozilla_Firefox has invalid HTML ‘<th width="37px">’: th/td's width attribute (http://www.w3.org/TR/html4/struct/tables.html#adef-width-TH and hence http://www.w3.org/TR/html4/types.html#type-length) should be either a plain integer ("37") or a percentage, not a number with units like the CSS width property.
The corresponding wiki markup seems to be simply ‘{{sisterlinks}}’.
I don't know how {{sisterlinks}} is implemented, but I'd guess that the problem is the same as for tables generally when a width param is given.
Looking at the Help pages for tables, I see that even one of the examples in http://en.wikipedia.org/wiki/Help:Table#Setting_your_column_widths (and its master copy http://meta.wikimedia.org/wiki/Help:Table) has the same problem: specifying width="100pt" among the parameters produces HTML with ‘<td width="100pt">’.
The fix is that a wiki param of ‘width="50px"’ should get converted to ‘width="50"’, while ‘width="100pt"’ should either get converted to a corresponding declaration in the style attribute (‘style="width: 100pt;"’) or be forbidden (getting the user to choose whether to use px or use a style element) or possibly get converted to px at a rate of 96px/in for screen and 128px/in for print (these numbers based on http://www.w3.org/TR/CSS21/syndata.html#length-units).
Whereas currently, the width param seems to be passed through verbatim with no checking, so one can have width="random garbage" in the HTML.
Wiki's shouldn't be able to pass arbitrary text into HTML, for the reasons given at http://en.wikipedia.org/wiki/Wikipedia:Technical_FAQ#Why_not_use_HTML.3F : it may allow triggering bugs in HTML user agents that expect valid HTML.
Version: unspecified
Severity: normal
URL: http://meta.wikimedia.org/wiki/Help:Table