HighDots Forums  

XHTML and quirksmode

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss XHTML and quirksmode in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
salmobytes
 
Posts: n/a

Default XHTML and quirksmode - 11-16-2007 , 09:09 AM






I do a fair amount of work with java and xml, so when I decided to
learn
how to make webpages, XHTML Transitional and/or Strict seemed like the
best DOCTYPE
(It's more orderly, less chaotic, closing all tags, etc).
But the following link convinced me I have to switch back to 4.01
Strict or Transitional:
http://hixie.ch/advocacy/xhtml

..........Also, when IE6 is flipped into quirksmode, css (apparently)
is handled differently.
Quirksmode, therefore, is an important css issue.

So, among other things, I gather it's important NOT to write code that
flips IE6 (or any other browser)
into any quirksmode. So this leads to my question:

Let's say you are testing with IE6. You look at a remote page, or
perhaps one of your own.
How do you know if IE6 has been flipped into quirksmode or not?

Reply With Quote
  #2  
Old   
Sherman Pendley
 
Posts: n/a

Default Re: XHTML and quirksmode - 11-16-2007 , 11:04 AM






salmobytes <Sandy.Pittendrigh (AT) gmail (DOT) com> writes:

Quote:
I do a fair amount of work with java and xml, so when I decided to
learn
how to make webpages, XHTML Transitional and/or Strict seemed like the
best DOCTYPE
(It's more orderly, less chaotic, closing all tags, etc).
But the following link convinced me I have to switch back to 4.01
Strict or Transitional:
http://hixie.ch/advocacy/xhtml
Good choice. XHTML was a good idea that was effectively torpedoed by MS's
refusal to support it in IE. HTML 4.01 Strict is best for new pages, while
transitional is better for old pages you want to bring up to date without
having to completely rewrite them.

Quote:
.........Also, when IE6 is flipped into quirksmode, css (apparently)
is handled differently.
Quirksmode, therefore, is an important css issue.
"Important" is an understatement. Jukka has a page that lists many of the
effects:

<http://www.cs.tut.fi/~jkorpela/quirks-mode.html>

In short, you should avoid quirks mode as if it's a disliked in-law and
wants to borrow money.

Quote:
So, among other things, I gather it's important NOT to write code that
flips IE6 (or any other browser)
into any quirksmode. So this leads to my question:

Let's say you are testing with IE6. You look at a remote page, or
perhaps one of your own.
How do you know if IE6 has been flipped into quirksmode or not?
Here's a page with a useful breakdown of commonly-used doctypes, and what
mode is triggered by each in various browsers:

<http://hsivonen.iki.fi/doctype/>

If you're looking at someone else's page, you could look at the doctype.
There's also bookmarklet that Jukka linked to on his page above that will
tell you which mode the page you're looking at is in:

<http://dorward.me.uk/www/bookmarklets/qors/>

sherm--

--
WV News, Blogging, and Discussion: http://wv-www.com
Cocoa programming in Perl: http://camelbones.sourceforge.net


Reply With Quote
  #3  
Old   
salmobytes
 
Posts: n/a

Default Re: XHTML and quirksmode - 11-16-2007 , 12:44 PM



On Nov 16, 10:04 am, Sherman Pendley <spamt... (AT) dot-app (DOT) org> wrote:
Quote:
http://hsivonen.iki.fi/doctype/

http://dorward.me.uk/www/bookmarklets/qors/

sherm--

good stuff, good links. Thank you.


Reply With Quote
  #4  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: XHTML and quirksmode - 11-16-2007 , 07:55 PM



salmobytes wrote:

Quote:
Let's say you are testing with IE6. You look at a remote page, or
perhaps one of your own.
How do you know if IE6 has been flipped into quirksmode or not?
Type in address bar

javascript:alert(document.compatMode);

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #5  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: XHTML and quirksmode - 11-17-2007 , 07:53 AM



Scripsit Jonathan N. Little:

Quote:
How do you know if IE6 has been flipped into quirksmode or not?

Type in address bar

javascript:alert(document.compatMode);
Apparently it displays
CSS1Compat
in "standards" mode and
BackCompat
in "quirks" mode. I guess we can guess this from the values when we've seen
then both, but as such, "CSS1Compat" sounds like "compatibility" to an
outdated "standard", i.e. rather quirky. :-)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
  #6  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: XHTML and quirksmode - 11-17-2007 , 11:27 AM



Jukka K. Korpela wrote:
Quote:
Scripsit Jonathan N. Little:

How do you know if IE6 has been flipped into quirksmode or not?

Type in address bar

javascript:alert(document.compatMode);

Apparently it displays
CSS1Compat
in "standards" mode and
BackCompat
in "quirks" mode. I guess we can guess this from the values when we've
seen then both, but as such, "CSS1Compat" sounds like "compatibility" to
an outdated "standard", i.e. rather quirky. :-)

C'mmon it Microsoft here! Where else would you use logic "Now got to the
Start button to Shutdown"!

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.