Page MenuHomePhabricator

Add meta Content-Style-Type tag
Closed, ResolvedPublic


Author: gurkenpapst

According to you need to define the style sheet language to have correct markup when using style attributes.

Documents that include elements that set the style attribute but which don't define a default style sheet language are incorrect.

MediaWiki uses elements with style attributes but is lacking this information (at least on the pages I checked).

While does not detect this as an error, a more strict validator like does:

Suggested fix: <meta http-equiv="Content-Style-Type" content="text/css" /> should be added into the head element of every page.

While I have not found any occurence during a quick search, there might also be a quite similar problem in the definition of the default script language:

Documents that do not specify default scripting language information and that contain elements that specify an intrinsic event script are incorrect.

Version: unspecified
Severity: trivial



Related Objects


Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:22 PM
bzimport set Reference to bz15835.
bzimport added a subscriber: Unknown Object (MLST).

gurkenpapst wrote:

Oops, summary should of course be: [...] definition of Content-*Style*-Type

IIRC there's similar bug somewhere around

marco wrote:

Patch at, searching for someone with commit access