This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24341 - Content-Style-Type flagged as bug
Summary: Content-Style-Type flagged as bug
Status: RESOLVED WONTFIX
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 08:44 UTC by Joihannes
Modified: 2015-08-23 07:07 UTC (History)
1 user (show)

See Also:


Attachments

Description Joihannes 2014-01-21 08:44:25 UTC
The following is flagged as error. Content-Style-Type is allowed

Error Line 6, Column 58: Bad value Content-Style-Type for attribute http-equiv on element meta.

	<meta http-equiv="Content-Style-Type" content="text/css">
Comment 1 Michael[tm] Smith 2014-01-21 09:43:16 UTC
(In reply to Joihannes from comment #0)
> The following is flagged as error. Content-Style-Type is allowed
> 
> Error Line 6, Column 58: Bad value Content-Style-Type for attribute
> http-equiv on element meta.
> 
> 	<meta http-equiv="Content-Style-Type" content="text/css">

Yeah, that's intentionally not allowed, because Content-Style-Type is not defined as a valid http-equiv value in the current HTML spec, and because it actually has no effect in any relevant UAs (the default styling language in all Web UAs/browsers is already CSS, and that's never going to change, so there's no point in using Content-Style-Type to specify the default styling language).

You can eliminate the error by removing the <meta http-equiv="Content-Style-Type" content="text/css"> instance from the document.
Comment 2 Joihannes 2014-01-23 07:39:58 UTC
That is all fine but please mark it as such in

http://www.w3.org/TR/html401/interact/scripts.html#h-18.2.1

this bug report should be changed in document change ticket
Comment 3 Michael[tm] Smith 2014-01-23 10:03:03 UTC
(In reply to Joihannes from comment #2)
> That is all fine but please mark it as such in
> 
> http://www.w3.org/TR/html401/interact/scripts.html#h-18.2.1

That link's to the HTML4 spec, which isn't going to be updated, because it's been obsoleted by HTML5.

If you want to validate your document against the latest version of HTML, you need to use the HTML5 spec and follow the requirements in it. Because that's what the HTML5 validator checks.

If instead you want to check that your document against the requirements in the HTML4 spec, you can use the HTML4 validator to validate it.