What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 134 Stack Exchange communities.

My FireFox HTML validator add-on always flags SO with a couple of warnings one of which is that the CSS link elements in the head don't have the required type attribute (type="text/css"). Is there a reason for this?

Also badge names with & characters don't seem to be HTML encoded.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

CSS link elements in the head don't have the required type attribute (type="text/css")

It's not required according to the w3c validator:

http://validator.w3.org/check

I am inclined to favor that over a random add-in..

badge names with & characters don't seem to be HTML encoded.

possible, since I don't think many have & (strunk & white?), and we might want to fix that bug. Can you cite HTML source?

Fixed, In a gross oversight, we weren't encoding badge names or descriptions. I blame me.

share|improve this answer
    
You're correct the add-on indicated it as a warning but w3.org/TR/html4/struct/links.html#edef-LINK states that it's not required. I noticed the & issue first on the recent badges section on the home page and also on the badge page itself stackoverflow.com/badges/12/strunk-white within the title and again further down the page. –  dmcgiv Oct 6 '09 at 11:03

First off, CSS <link> don't actually need the type field in the tag.

But really, the most common answer to these sorts of questions is that perfectly valid HTML and CSS (even though in this case it is valid) is not a high priority because no one benefits (compared to something like new features) from it.

share|improve this answer
3  
WONT SOMEONE THINK ABOUT THE POOR VALIDATORS??!?! –  Jeff Atwood Oct 6 '09 at 11:21
    
I, for one, welcome our new, non validating web developers. –  perbert Oct 6 '09 at 12:56
1  
Meet the new web developers, same as the old web developers... –  Shogging through the snow Oct 11 '09 at 6:07
    
What I ment was that, on the grand scale, perfectly valid HTML+CSS is not that important compared to new features. Of course, I still believe web developers should be striving for validity... –  David Pearce Oct 11 '09 at 8:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .