[thelist] Good lesson about validation, and debugging (was: CSS hover not validating at W3C)

Joe Crawford jcrawford at avencom.com
Tue Apr 17 18:50:28 CDT 2001


sfmalo wrote:
> Thanks to you both for checking this out. What threw me initially is that I
> first checked it in CSS2 and it coughed at Hover, giving me an error. Then,
> I tried CSS1; same cough. But, there was a problem with a double-declaration
> I gave another element (in both my remote.css and document-wide
> instructions). That must have caused it. When I fixed that, lo, it validated
> in CSS2. My ignorance is showing in that I did not initially recognize Hover
> as CSS2 related. I plunged into the middle of the pond from standing in
> water only ankle deep ... and almost drowned. By the time I get to CSS3,
> I'll be swimming the entire pond underwater. (<:

Yeah, this is part of what's tricky about validating HTML or CSS, or
debugging in general -- sometimes the error message you get is a red
herring - and the real problem is some distance before, or some distance
after what it *says* is the problem.

Tricky to debug, but once you get used to it that kind of debugging
instinct will help you code in pretty much any language.

	- Joe <http://artlung.com/>
--
Joe Crawford ||||||||||||||       mailto:jcrawford at avencom.com
||||||||||||||||||||||||             http://www.avencom.com
|||||||||||||||||||||||||||      Avencom: Set Your Sites Higher




More information about the thelist mailing list