Having fun with IE - part 3: doctype switching
Part 3 of this serie; today: doctype-switching.
This is about doctype switching in IE:
HTML:
triggers quirksmode because there is no version URI present
HTML:
triggers standards-compliant mode because the version URI is present
But what exactly is a URI?
HTML:
yep, that's a URI, so we render in standards-compliant mode
HTML:
nope, that's not a URI, so we render in quirksmode
HTML:
sure, standards-compliant mode because it contains http:// so it must also be a URI...
Now let's just hope W3 doesn't decide to use a different protocol for the latest versions of their document type definitions:
HTML:
doesn't contain http:// anywhere, so surely this can't be a valid URI...
This is about doctype switching in IE:
HTML:
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
HTML:
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
But what exactly is a URI?
HTML:
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
HTML:
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
HTML:
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
Now let's just hope W3 doesn't decide to use a different protocol for the latest versions of their document type definitions:
HTML:
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
12-'06 Capability detection - the better way
12-'06 About the cube
Comments
Comments are closed