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 3645 - My CSS won't validate since it is saying my XML is not valid.
Summary: My CSS won't validate since it is saying my XML is not valid.
Status: RESOLVED INVALID
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.0 (show other bugs)
Version: CSS Validator
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL: http://www.ajaxswimming.ca
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-31 23:00 UTC by Francis Pelland
Modified: 2006-09-01 00:30 UTC (History)
0 users

See Also:


Attachments

Description Francis Pelland 2006-08-31 23:00:55 UTC
I have done XHTML validaty several times and it is perfect.  Now when I do a CSS check, it does not work and say:

Target: http://www.ajaxswimming.ca/index.php

Please, validate your XML document first!

Line 337

Column 83

Element type "td" must be followed by either attribute specifications, ">" or "/>".
Comment 1 Olivier Thereaux 2006-09-01 00:30:55 UTC
Apparently, your code does some user agent sniffing, and returns different pages to different user agents. 

When requesting the page with User-Agent: Jigsaw/2.2.0 W3C_CSS_Validator_JFouffa/2.0 (the identifier of the CSS validator), The page I get has the following markup at line 337

<td style="background:url(/templates/Default/images/mtdbgbot.gif)"class="slink" align="right"> 

Note the lack of space between " and class.

Conclusion: avoid user agent sniffing as much as possible. It wasted your time (and mine). :)