Ignores <META http-equiv="Content-Style-Type" ...>

HTML Validator not following the HTML Standard, thus stopping some valid
pages passing validation, and so stops me putting an approved button on the
page, because I can't validly say that an invalid invalidation makes a valid
validateable page:


Ignores <META http-equiv="Content-Style-Type" ...>

Here is the cascade I typically use:

<META http-equiv="Content-Style-Type" content="text/css">
<META http-equiv="Default-Style" content="Default">
<LINK rel=stylesheet href="/sensible.css" media="screen,print"
title="Default">
<LINK rel=stylesheet href="/spoken.css" media=aural title="Spoken INSTEAD">
<STYLE media=all><!--
/* Local CSS here. */
--></STYLE>

But even though I don't need to specify content type after the first line:

Line 24, column 16: required attribute "TYPE" not specified.
  <STYLE media=all><!--

And there's no complaint about content type missing from the <LINK ...> 
Tags.


From the HTML 4 Specification:

  14.2.1 Setting the default style sheet language

   Authors must specify the style sheet language of style information
   associated with an HTML document.

   Authors should use the META element to set the default style sheet
   language for a document. For example...:

   <META http-equiv="Content-Style-Type" content="text/css">


  14.2.3 Header style information: the STYLE element

   type = content-type [CI]
          This attribute specifies the style sheet language of the
          element's contents and overrides the default style sheet
          language. Authors must supply a value for this
          attribute; there is no default value for this attribute.

So what is the point of supplying a deafult with Content-Style-Type??
I must specifiy a default, but it will be ignored if I do? Huh?

Is the error with me or the Specification or a mixture?


-Robin H. (Mr.)

_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection 
http://www.msn.co.uk/specials/btbroadband

Received on Friday, 30 January 2004 11:52:45 UTC