473,407 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Determine if the www-reader is in quirk mode?

Is it possible to determine if the www-reader is in quirk mode and
then do a printout on the status line at the bottom?
Jul 26 '05 #1
5 2309
Roland Bengtsson wrote:
Is it possible to determine if the www-reader is in quirk mode and
then do a printout on the status line at the bottom?

why not just use a strict doctype to make sure it doesnt happen in the
first place?
Jul 26 '05 #2
So the doctype is the only condition the www-reader look at when it
determine what mode it will go in?

For example is this an doctype that is OK?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

It validates ok on W3C for HTML V4.0.
But the page info in Firefox shows that this www-page is in quirk mode.
So it should be something wrong with the doctype or the rest of the
page. I don't know.

Look for yourself at www.cplusplus.nu.
The language is Swedish, but it doesn't matter for the html code.

Regards Roland
*** Sent via Developersdex http://www.developersdex.com ***
Jul 26 '05 #3
Roland Bengtsson wrote:
So the doctype is the only condition the www-reader look at when it
determine what mode it will go in?

For example is this an doctype that is OK?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

It validates ok on W3C for HTML V4.0.
But the page info in Firefox shows that this www-page is in quirk mode.
So it should be something wrong with the doctype or the rest of the
page. I don't know.

Look for yourself at www.cplusplus.nu.
The language is Swedish, but it doesn't matter for the html code.

Regards Roland
*** Sent via Developersdex http://www.developersdex.com ***


This doesn't trigger standards mode in IE, you would need:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

that can all be on one line too (with a space of course)

http://msdn.microsoft.com/workshop/a...ts/doctype.asp

Kevin N.

Jul 26 '05 #4


Roland Bengtsson wrote:
Is it possible to determine if the www-reader is in quirk mode and
then do a printout on the status line at the bottom?


IE 6 and Mozilla and Opera have a property
document.compatMode
which has the value 'BackCompat' when in quirks mode.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 27 '05 #5
Martin Honnen <ma*******@yahoo.de> writes:
IE 6 and Mozilla and Opera have a property
document.compatMode
which has the value 'BackCompat' when in quirks mode.


It has the value "CSS1Compat" in standards mode, but different
browsers have different values for quirks mode.

IE and current Firefox have "BackCompat", but Opera uses "QuirksMode",
and I seem to remember previous versions of Mozilla doing the same.

So, to test for standards/non-standards mode, compare to "CSS1Compat".

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 27 '05 #6

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

Similar topics

17
by: John Bentley | last post by:
John Bentley: INTRO The phrase "decimal number" within a programming context is ambiguous. It could refer to the decimal datatype or the related but separate concept of a generic decimal number....
3
by: Shahid Juma | last post by:
Hello All, This may be a trivial question, but I was wondering how can you determine if a value contains an Integer or Float. I know there is a function called IsNumeric, however you can't...
2
by: LaBird | last post by:
Dear all, I'd like to know if there is any function or program call in C++ (without memory protection support by OS), that can determine whether an object is being read or written? e.g., a =...
5
by: Hennie de Nooijer | last post by:
Hi, This is a diffcult issue to explain. I hope to make my problem clear to you. SITUATION I'm building A SLA Query for a customer. This customer has an awkward way to determine the SLA results...
5
by: George Hester | last post by:
Say I have this in a web page: <center><a href="http://www.microsoft.com">www.microsoft.com</a></center> I can use CSS, the DOM and\or JavaScript to determine the width style.innerHTML.length...
3
by: lucpustjens | last post by:
Hello, I want te determine the client operating system, because I need to kno the default cookie directory. If there is a way to determine the cooki directory directly, than it is also good. ...
4
by: anketm | last post by:
I am writing a simple client using UDP sockets. I am wondering if there is any way to determine what local port a socket was bound to when bind() is not explicitly called. This is what my...
3
by: Developer in California | last post by:
I am working on developing a generic Web framework using Master Pages in ASP.NET 2.0. What I have done is created a PageRenderer class which has a public method which will retrieve the path of the...
6
by: Jana | last post by:
Greetings Access Gurus! I am working on an app to send batch transactions to our bank, and the bank requires that we place an effective date on our files that is 'one business day in the future,...
9
by: Scott | last post by:
What is the most reliable method to determine the folder a script is running in? I was looking at the globals in $_SERVER but all the variables also listed the actual file the script was running...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.