and so i provide the first bad example from a big gun.
ie’s big daddy: microsoft. some may say: an easy target. yes, it is, and this even after so many years they had to properly respond to all the critics and improve.
there is a big hype going around ie9: it will be the biggest, fastest, compliant… ok, ok, will see.
let’s look though, at the code for their browser’s presentation page. keep in mind they are also the proud providers of some rapid dev tools for web: web expression.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html dir="ltr" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://developers.facebook.com/schema/">
<head id="ctl00_ctl00_uxHead"><title>
Internet Explorer 8 Windows 7 Security Features Malware Privacy
</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /><meta name="keywords" content="
internet explorer 8 in windows 7, internet explorer 8 security, internet explorer 8 privacy, internet explorer 8 malware protection, compare ie8
" /><meta name="description" content="Find out what’s new with Internet Explorer 8 performance and security and privacy features that help protect against malware and other online threats." />
[...]
<meta />
hmm… let’s seee… they declare a html 4.01 strict. nice, we know they don’t support xhtml yet, so this is consistent…
but wait, xmlns: attributes for the html element? and are they using xhtml self closing tags for empty elements?
and what do i see down the page’s code:
<meta name="t_omni_rsids" content="mswindowsie8rc1" />
<meta name="t_omni_events" content="event18">
are they mixing it up? well, this mixing of self closing with normal empty elements syntax belongs on the dance floor, not here. now i understand why they made an UA so permissive with author’s code: not for us, they need it first!
there may be other points to be made regarding their page, but with what we got so far, we can safely draw our conclusions.
so here it is:
- don’t do what microsoft says, do what he says he’ll do

- don’t get your hopes to high, ie9 will probably mean more work, as usual

- follow other leads for correct coding examples. microsoft doesn’t care so much… yet!