473,782 Members | 2,623 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 #1
35 5187
Dr.Tube wrote:
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.


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.

Jul 20 '05 #2
Dr.Tube wrote:
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?


Look up the table on Eric Meyer's website [1]. According to Eric's
table, it should be in standard's compliant mode. I recommend just
using XHTML 1.0 Strict, and it will always be in standard's compliant
mode for every browser.

[1] http://www.ericmeyeroncss.com/bonus/render-mode.html

--
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 #3
Lachlan Hunt <la**********@l achy.id.au.upda te.virus.scanne rs> wrote in
news:YO******** ********@news-server.bigpond. net.au:
Dr.Tube wrote:
How can I check whether IE6 and Opera do so too?


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


That's assuming you're sending it as application/xhtml+xml. If you send it
as text/html (which the majority of people do, due to lacking browser
support), quirks mode still exists.

Regards,
Geoff
Jul 20 '05 #4
Hi Keith,
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?
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.


Whoa, that should have taken some digging in all sorts of MS knowledge
bases... You wouldn't by any chance have a link to a MS knowledge base
or something similar on this subect so that I can read up on this?

Thanx.
Xavier
Jul 20 '05 #5
Geoff Ball wrote:
That's assuming you're sending it as application/xhtml+xml. If you send it
as text/html (which the majority of people do, due to lacking browser
support), quirks mode still exists.


Well, although it is not parsed as XML when served as text/html, it
is still rendered in standards compliant mode in all modern browsers.
Also, many people serve it as text/html because they either don't have
the ability to set up content negotiation on the server (like my website
at the moment), or they lack the knowledge to do so.

--
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 #6
Lachlan Hunt wrote:
Geoff Ball wrote:
That's assuming you're sending it as application/xhtml+xml. If you
send it as text/html (which the majority of people do, due to lacking
browser support), quirks mode still exists.


many people serve it as text/html because they either don't have the
ability to set up content negotiation on the server (like my website at
the moment), or they lack the knowledge to do so.


Then why use xhtml at all? HTML is a better choice for most authors.

--
Brian (reomve ".invalid" to email me)

Jul 20 '05 #7
Brian wrote:
Then why use xhtml at all? HTML is a better choice for most authors.


Currently, there is no major benefit for the client to have XHTML 1.0
Strict over HTML 4.01 Strict when the document only contains HTML
markup. I don't have a problem with someone using HTML 4.01 Strict, as
long as they do it correctly and it validates. However, I choose to,
and recommend others do use XHTML because it forces the very good XML
habbits of always explicitly closing every element, quoting every
attribute value, etc.... Also, using XHTML allows authors to embed
other XML languages such as RDF, MathML, SVG, etc... (which will have a
lot more benefit when UA support for those languages improves)

--
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 #8
Lachlan Hunt <la**********@l achy.id.au.upda te.virus.scanne rs> wrote:
However, I choose to,
and recommend others do use XHTML because it forces the very good XML
habbits of always explicitly closing every element, quoting every
attribute value, etc....


XHTML doesn't force authors to do anything. If you are talking about
validation, you can get error prompts for unclosed non empty elements
with HTML by a minor modification of the DTD.

--
Spartanicus
Jul 20 '05 #9
Spartanicus wrote:
XHTML doesn't force authors to do anything.
XHTML does force you to close elements and quote all attribute
values, specify an XML namespace, and every other XML rule, unless
you're writing invalid markup. Sure, browsers will still render it,
without throwing an error when served as text/html, but try serving
invalid XHTML as application/xhtml+xml to mozilla or any other UA that
correcly supports it, and you'll get an XML well-formedness error message.

If you are talking about validation, you can get error prompts for unclosed non empty elements
with HTML by a minor modification of the DTD.


What's the point? Even if that were possible, XHTML already has the
DTD and XML rules specified to ensure that.

--
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 #10

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
2327
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
9639
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
10308
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...
1
10076
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8964
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
6729
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
5375
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
5507
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4040
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.