Re: [gutvol-d] More than you ever wanted to know about XHTML andCSS (gutvol-d Di

----- Original Message ----- From: "Marcello Perathoner" <marcello@perathoner.de>
<HEAD> <STYLE type="text/css" title="red"> P { color: red } </STYLE> <STYLE type="text/css" title="blue"> P { color: blue } </STYLE> <STYLE type="text/css" title="green"> P { color: green } </STYLE> </HEAD> <BODY> <P>Don't show this to any DP Project Manager. </BODY>
Too late. We know all about that trick! :) The problem is that some browsers, whom shall remain nameless (*cough* IE *cough), go into "quirks" mode when there is multiple style sheets defined. Things that worked fine with just one style sheet defined now quit working correctly with multiple style sheets defined. Nevermind the fact that IE refuses to let you switch styles on the fly. Now, IE *shouldn't* switch to quirks mode base on multiple styles, but it seems to anyways (at least in the limited testing I did on the subject). It is also extremely annoying that IE triggers quirks mode if you include an XML prolog at the beginning. <?xml version="1.0" encoding="utf-8"?> (BTW, Marcello, the TEI conversion currently puts that prolog in ... which triggers IE to quirks mode DESPITE the Strict statement in the next line. We should see if we can safely remove it.) See http://www.quirksmode.org/css/quirksmode.html for a quick and dirty primer on quirks mode and why it exists. Josh

Joshua wrote:
Marcello Perathoner wrote:
<HEAD> <STYLE type="text/css" title="red"> P { color: red } </STYLE> <STYLE type="text/css" title="blue"> P { color: blue } </STYLE> <STYLE type="text/css" title="green"> P { color: green } </STYLE> </HEAD> <BODY> <P>Don't show this to any DP Project Manager. </BODY>
It is also extremely annoying that IE triggers quirks mode if you include an XML prolog at the beginning. <?xml version="1.0" encoding="utf-8"?>
Thanks for the link to quirksmode.org. I was aware of the quirks/ strict mode switches of browsers (based mostly on DOCTYPE), but didn't realize that IE6 messed things up vis-a-vis the XML prolog: "In Explorer 6 Windows, Microsoft implemented one extra rule: if a doctype that triggers strict mode is preceded by an xml prolog, the page shows in quirks mode. This was done to allow web developers to achieve valid pages (which require a doctype) but nonetheless stay in quirks mode." This is very lame. Microsoft simply assumed that no one will ever include the XML prolog in a finished online HTML page, so they invoked this rule for testing purposes! (There are certainly other ways they could have used to force quirks mode, like a "always quirks mode" menu selection.) Hopefully the announced IE upgrade (supposedly to me more CSS standards conformant -- a result of the pressure from Firefox and Opera) will fix this. But I'm not holding my breath. Jon Noring
participants (2)
-
Jon Noring
-
Joshua Hutchinson