just some sort of lame blog

CSS/XHTML Validity

This blog isn't 100% CSS or XHTML compliant. The CSS is probably easily fixable, the following CSS is what's invalid:

form[id=Form2] input
-moz-opacity: 0.50;
background-color: rgba(255, 255, 255, 127);

form[id=Form2] input:HOVER, form[id=Form2] input:FOCUS, form[id=Form2] input:ACTIVE
-moz-opacity: 0.90;
background-color: rgba(255, 255, 255, 229);

I'm sure there's an alternative to -moz-opacity that's CSS compliant, but I haven't found it yet. I thought that the rgba(n,n,n,n) syntax was at least valid CSS3, but that didn't seem to validate either. I just switched to opacity and it validates and works fine in FF, yay!

The XHTML isn't as easily fixable. I'm pretty sure that this is about as valid as it gets without re-compiling the .Text source.

  • None of the pages with forms validate due to the way .Net renders out the <script> tags.
  • The main page doesn't validate due to an asp:literal in the Day control that spits out: Title = "x". (note the spacing and capitalization)
  • The Post pages have asp:literals that have <link> tags used for pingbacks in bad spots and they have end tags either.
  • The comments people post are converted to HTML instead of XHTML
  • The posts I make aren't always perfect either (damn those & in urls)

The last one is pretty much the only one I can control at this point. I could probably even eliminate the last two by hacking a few SPs. If anyone knows a solution for the others without recompiling, please let me know. I have to say that even though .Text wasn't XHTML compliant out-of-the-box, it really has a great architecture and it has been fairly easy to upgrade to XHTML compliancy.


comments powered by Disqus