473,791 Members | 3,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Determining whether IE6 renders in Quirks or Standard mode???

Hi there,
I have this web site (www.DrTube.com) which has the following DTD:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
which switches Mozilla to standards compliance mode as I can confirm
myself. How can I check whether IE6 and Opera do so too?
TIA
Regards
Xavier van Unen.
Jul 20 '05
35 5189
Martin Honnen wrote:


Lachlan Hunt wrote:

I recommend just using XHTML 1.0 Strict, and it will always be in
standard's compliant mode for every browser.

Why is that? IE5 and IE5.5 for instance on Windows do not even have a
standards compliant mode and while IE6 has one it suffices to serve an
XHTML document with an XML declaration (e.g <?xml version="1.0"
encoding="ISO-8859-1"?>) to have IE6 in quirks mode.


My mistake, I neglected to write ...for every *modern* browser above.
IE 5 and 5.5 are obsolete, and IE 6 isn't far off. I'm well aware
that IE6 doesn't actually have any mode that could be considered
standards compliant — it simply has quirks, and *more quirks* mode. The
only thing keeping it alive is because it comes with the operating
system, and the average user around the world wouldn't have a clue about
how to install another; (or when it comes to system administrators,
they're too lazy and incompetent to know any better, and that they
should remove all traces of IE from their network.)

--
Lachlan Hunt
http://www.lachy.id.au/
la**********@la chy.id.au.updat e.virus.scanners

Remove .update.virus.s canners to email me,
NO SPAM and NO VIRUSES!!!
Jul 20 '05 #21
Lachlan Hunt wrote:
I didn't mean what's the point of validating, since all documents
should be valid. I meant what's the point of modifying the HTML 4
DTD just to get warnings about unclosed non-empty elements, when using
XHTML will already do that, and more.


Okay, I'll bite. What's the "and more"? By definition XHTML(tm) cannot
possibly do anything more than HTML can do. The sole reason for the
whole XHTML(tm) exercise was to strengthen W3C's commercial position
by replacing the term HTML with one which the W3C could assert was a
trademark.
Jul 20 '05 #22
Lachlan Hunt wrote:
Martin Honnen wrote:

Lachlan Hunt wrote:
I recommend just using XHTML 1.0 Strict, and it will always be in
standard's compliant mode for every browser.
Why is that? IE5 and IE5.5 for instance on Windows do not even have a
standards compliant mode and while IE6 has one it suffices to serve an
XHTML document with an XML declaration (e.g <?xml version="1.0"
encoding="ISO-8859-1"?>) to have IE6 in quirks mode.


My mistake, I neglected to write ...for every *modern* browser above.


Sounds like: "When the P.M. said, 'By 1990, no Australian child will
live in poverty,' what he clearly meant was, 'No Australian child will
*need to* live in poverty.'"

It's okay, since no-one *needs* to use the obsolete IE5, your
statement was not in error. You're in good (neglectful) company.

IE 5 and 5.5 are obsolete, and IE 6 isn't far off. I'm well aware
that IE6 doesn't actually have any mode that could be considered
standards compliant — it simply has quirks, and *more quirks* mode. The
only thing keeping it alive is because it comes with the operating
system, and the average user around the world wouldn't have a clue about
how to install another;


Those pesky average users again. What is keeping IE alive is its
superior features for use with non-latin scripts (as used by most of
the world's people). Still, the reality is there is no reason for any
English speaking person to ever use IE.

--
Internet Explorer - the browser more terrorists prefer.
Jul 20 '05 #23
Wolfgang Wildeblood wrote:
Lachlan Hunt wrote:
I didn't mean what's the point of validating, since all documents
should be valid. I meant what's the point of modifying the HTML 4
DTD just to get warnings about unclosed non-empty elements, when using
XHTML will already do that, and more.

Okay, I'll bite. What's the "and more"? By definition XHTML(tm) cannot
possibly do anything more than HTML can do.


I thought I made myself clear with what I wrote above, but anyway,
That's right, XHTML can't do more than HTML with regard to structure or
semantics, however I meant that XHTML imposes the additional rules of
XML which HTML doesn't. For example, ensuring every attribute value is
quoted; an xmlns must be specified; there are no optional tags [1] (eg.
<head> and <body> cannot be omitted, as they could in HTML), etc...
(read the XML and XHTML recommendations for more).
The sole reason for the whole XHTML(tm) exercise was to strengthen W3C's commercial position
by replacing the term HTML with one which the W3C could assert was a
trademark.


The reason for migrating to XHTML had nothing to do with marketing to
improve W3C's commercial position, it had to do with making a markup
language that was compatible with existing and future XML user agents,
as well as being backwards compatible with existing HTML UAs. XHTML2,
on the other hand, will *not* be backwards compatible with existing HTML
UAs, however it will be completely compatible with XML UAs.

--
Lachlan Hunt
http://www.lachy.id.au/
la**********@la chy.id.au.updat e.virus.scanners

Remove .update.virus.s canners to email me,
NO SPAM and NO VIRUSES!!!
Jul 20 '05 #24
On Fri, 3 Jun 2004, Wolfgang Wildeblood wrote:
Those pesky average users again. What is keeping IE alive is its
superior features for use with non-latin scripts


Could you be more specific? Mozilla is objectively better in the tests
that I am aware of.
Jul 20 '05 #25
On 3 Jun 2004, Wolfgang Wildeblood wrote:
Those pesky average users again. What is keeping IE alive is its
superior features for use with non-latin scripts (as used by most of
the world's people). Still, the reality is there is no reason for any
English speaking person to ever use IE.


Even the latest MS Windows versions (XP, 2003) with _default_ setup
for Internet Explorer fail to display the special Urdu letters in
<http://www.unics.uni-hannover.de/nhtcapri/arabic.html6>
<http://www.unics.uni-hannover.de/nhtcapri/arabic.win>
although support for Urdu was introduced with Windows 2000.

Internet Explorer requires special markup to display extended
Arabic characters:
<http://www.unics.uni-hannover.de/nhtcapri/pashto-alphabet.html>
<http://www.unics.uni-hannover.de/nhtcapri/sindhi-alphabet.html>
<http://www.unics.uni-hannover.de/nhtcapri/urdu-alphabet.html>
Without this markup, IE6 is clueless.

Likewise, IE6 in this default setup fails to display *most* symbols
from <http://ppewww.ph.gla.a c.uk/~flavell/unicode/unidata21.html>

Mozilla/Netscape on the other hand works fine!

--
Top-posting.
What's the most irritating thing on Usenet?

Jul 20 '05 #26
Wolfgang Wildeblood wrote:

[snip]
Those pesky average users again. What is keeping IE alive is its
superior features for use with non-latin scripts (as used by most of
the world's people). Still, the reality is there is no reason for any
English speaking person to ever use IE.


Please excuse my ignorance, but what are those superior features?

= Eric

Jul 20 '05 #27
Keith Bowes wrote:
....
Try entering javascript:aler t(document.comp atMode) in the URL area.

You should get CSS1Compat if it's in standards mode, or BackCompat if in
quirks.

Big fun.
Try http://meeuw.zeepost.nl/ie_quirks.htm
Standards compliant mode in NN7, showing "BackCompat " in IE6.
It is a XHTML 1.1 document validating just OK with W3C by the way.

Cheers

--

/*************** *************** *************** *************** *************** *
JotM aka Jaap van der Heide
Remove ".XXXnospam XXX" for a valid return address
Please reply to a news message in the group where the message was posted
*************** *************** *************** *************** *************** */

Jul 20 '05 #28
JotM <me************ *******@planet. nl> wrote:
Keith Bowes wrote:

Try entering javascript:aler t(document.comp atMode) in the URL area.
You should get CSS1Compat if it's in standards mode, or BackCompat if in
quirks.
Big fun.
Try http://meeuw.zeepost.nl/ie_quirks.htm
Standards compliant mode in NN7, showing "BackCompat " in IE6.


Of course, well known bug in IE - it only looks for the doctype on teh
first non-blank line of the code, so the XML declaration automatically
pushes it into quirks mode.
It is a XHTML 1.1 document validating just OK with W3C by the way.


Except that you've served it as text/html ...

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 20 '05 #29
Steve Pugh wrote:

....
It is a XHTML 1.1 document validating just OK with W3C by the way.

Except that you've served it as text/html ...


Yup. But with a free dial-up account I can't really control the server
of my provider. I tried it with a meta header stating it should be <meta
http-equiv="content-type" content="applic ation/xml+xhtml; charset=utf-8"
/>. But as said, I can't control the type put into the http header served.

Jaap

Jul 20 '05 #30

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
12994
by: Axel Dahmen | last post by:
Hi, there's one question that's been bothering me for a long time: Why does the TD element not inherit from the BODY element? Is there any reason why properties like "font-family" or "font-size" are not applied to content of TD if I assign them to the BODY element? Thanks a lot for enlightening me! Axel Dahmen
12
9411
by: skeeterbug | last post by:
http://www.geocities.com/operationsengineer1/test2.htm the extra space between the logoHeader and the menu bar occurs when i add the <ul>. if i comment out the ul and and all the li, the 1em space disappears in firefox. http://www.geocities.com/operationsengineer1/test3.htm it never shows in ie6. if i increase the margin of hmenu to 1 em, there is no effect on the top and bottom, but the right and left are
6
2777
by: Thomas | last post by:
In Mozilla: The problem we are trying to solve: We are using XSL/XML to generate tables with text in the rows. The spacing is wider then when those same exact tables are created in regular HTML. We figured out that this has to do with Mozilla rendering the HTML page in quirks mode, versus the XML/XSL page being rendered in strict mode. I can find no way to enable quirks mode in Mozilla for XML/XSL documents, since it does not appear...
4
15073
by: Claire | last post by:
How do I determine whether Im running in debug or release mode from code please. thanks Claire
14
2763
by: googler | last post by:
Is there any C library function that returns the size of a given file? Otherwise, is there a way in which file size can be determined in a C program? I need to get this for both Linux and Windows platforms, so a generic solution is what I am looking for. Thanks for your help.
3
4887
by: Steve Sobol | last post by:
I need to use JavaScript and the DOM to determine the available amount of browser space - the total size of the browser window minus whatever space is used by chrome. window.innerHeight and window.innerWidth seem to work fine in Opera 8 and Firefox 1.5. In IE, I've read that you need to use document.body.clientHeight and .clientWidth but that seems to only give you the dimensions of the box created by your <body> tag. Whatever...
1
5028
by: jason.m.ho | last post by:
Has anyone run into the problem of firefox 'border-collapse: collapse' rendering a table 1-pixel too far to the left? In IE and Opera it will render fine...Does anyone know if this is a bug? This property only holds true in standards compliance mode (quirks mode firefox renders it fine). For example, if you had the following code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
18
2328
by: Neil Cherry | last post by:
I'm in the process of redesigning my web page and started working more with CSS. I have, what I think is, a nice web layout (I'm no expert so I could be wrong). When I tested it with Konqueror and Firefox it works well (a few minor problems) but when I test it with IE 6.0 it doesn't display or it jumbles everything up. I've tried using various examples (conditionals) to get around IE problems but they are causing more problems that they...
22
13563
by: Harry Haller | last post by:
Is there any other way apart from: document.compatMode == 'CSS1Compat' <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>Virtual Library</title> <script type="text/javascript">
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5431
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.