CSS Validator Broken
Jeffrey Zeldman points out that the CSS validator is incorrectly labelling sites that use Tantek Çelik’s Box Model Hack, and specify a media type of "screen", invalid. See, for example the CSS Validator’s report on A List Apart. At issue is the possible conflict of an aural declaration in the midst of a screen CSS file. Doug Bowman points out that it should not return an error, but rather a warning. He suggests we take the opportunity to be a bit rebellious. That may be fine for personal sites, like blogs and such, but clients to whom you’ve promised valid sites may not relish the thought.
Dave Shea points out that you can route around the CSS validator by sending it the URL to the CSS file, rather than the (X)HTML file that applies it. This works unless you use multiple CSS files.
Other, potentially labor intensive options are outlined in Jeffrey’s post, and when it gets posted to A List Apart tomorrow, I’m sure there will be other ideas about what you can do.
Personally, I try to avoid the hack as much as possible, designing around it where I can.
About this post
In which Mark discusses the broken CSS validator, and what you might do about it...
February 5, 2004 | CSS
More Like This
- CSS 102: Borders and Backgrounds
- Hey, I know that guy!
- New Article at Digital Web Magazine
- Safari Bug update
- Safari Bug
By Category
- Apple
- CSS
- Christianity
- NaBloPoMo
- cycling
- design
- digital photography
- digital video
- family
- fitness
- iPod
- meta
- politics
- random
- speaking
- web standards
- writing
Recent Posts
- Liberal Bias
- A key to success in the marketplace?
- 100!
- 100 push ups, week 6, day 3
- 100 push ups, week 6, day 2
Monthly Archives
- October 2008
- July 2008
- June 2008
- April 2008
- March 2008
- January 2008
- December 2007
- August 2007
- December 2006
- November 2006
- September 2006
- July 2006
- March 2006
- February 2006
- October 2005
- September 2005
- August 2005
- July 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- April 2004
- March 2004
- February 2004
- January 2004
- December 2003
- November 2003
- March 2000-August 2003
Comments