W3C home > Mailing lists > Public > www-validator-css@w3.org > January 2009

RE: no stylesheet found

From: Douglas Perreault CPA* CITP <doug@perreault.us>
Date: Fri, 9 Jan 2009 09:15:09 -0500
To: "'Yvonne Janssen'" <yvonnejanssen@weezenhof.com>, <www-validator-css@w3.org>
Message-ID: <01d701c97264$ae9116d0$0bb34470$@us>
Yvonne,

 

I will second David Dorward's suggestion. Your page has no stylesheet unless
you have JavaScript available. I suspect the validator does not read
JavaScript.

 

To revise your page, remove the  lines:

 

<script type="text/Javascript" src="browsersniffer.js"> 

</script>

 

and replace with:

 

<!--[if IE]><link rel="stylesheet" type="text/css"
href="style_iebrowser.css"><![endif]-->

<![if !IE]><link rel="stylesheet" type="text/css"
href="style_otherbrowser.css"><![endif]>

 

You can then delete the file browsersniffer.js (assuming you haven't used it
anywhere else.

 

Notice that I said "revise" but not "correct" your page. David's steps will
serve you better overall. Microsoft is about to release IE 8 and it will be
more standards compliant than IE 6 or 7. With that in mind, you may find
your site looks better in IE 8 using the stylesheet you currently have set
as "style_otherbrowser.css"

 

--Doug
Received on Friday, 9 January 2009 14:15:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:21 GMT