473,781 Members | 2,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[Slightly OT] 'Quirks mode' wail of despair

There is no need to respond to this post. There is, in fact, no possible
helpful response to this post. I just needed to tear my hair in public...

I have a site I wrote for a customer four years ago. Recently, the customer
upgraded their browser (probably on an automatic upgrade) to Internet
Explorer 7, and phoned me up to say the site was broken. The site
is 'broken', because IE 7 loses a band about 1em high across the top of
the page; it spaces everything correctly, but this band is just white. So
I checked the site; it's all generated as XHTML 1.0 Transitional, although
given the markup I'm using it could equally have been declared to be 1.0
Strict.

Standards-compliant browsers - Firefox, Konqi, Safari, Opera - render the
site just fine. Internet Explorer 6 rendered the site just fine. OK, I
thought, what's changed here? Is it %&$£$*$ 'quirks mode'? I deleted the
DTD declaration from a page, and, surprise, it rendered perfectly.

IE6, it appears, renders a page with an XML declaration and XHTML 1.0
Transitional doctype using 'quirks mode'. IE7 renders it using something
delightfully called 'Almost Standards Mode' (See
<URL:http://hsivonen.iki.fi/doctype/>). And my page design is obviously
triggering one of the 'almost' bits...

I do not want to return to the tag-soup era. I want to do things properly.
But my customers want their site to look the way they want it to look, and
that's reasonable because an increasing numbers of their customers will be
using IE7. So I have either to spend a long time sorting out how exactly
to write a standards-conformant page which looks the same on a
standards-compliant browser as the present page does, but which also looks
the same on IE7; or else I can just take the doctype out of the
templates...

It CANNOT be beyond the wit of the world's largest and richest software
company to build something that does this right, surely!
--
si***@jasmine.o rg.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

[ This .sig subject to change without notice ]
Mar 22 '07 #1
4 1780
Simon Brooke wrote:
It CANNOT be beyond the wit of the world's largest and richest software
company to build something that does this right, surely!
As far as I can tell, MS believes that IE does everything right and the
other ("standards-compliant") implementations are wrong.

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Mar 22 '07 #2
Simon Brooke wrote:
Standards-compliant browsers - Firefox, Konqi, Safari, Opera - render the
site just fine. Internet Explorer 6 rendered the site just fine. OK, I
thought, what's changed here? Is it %&$£$*$ 'quirks mode'? I deleted the
DTD declaration from a page, and, surprise, it rendered perfectly.

IE6, it appears, renders a page with an XML declaration and XHTML 1.0
Transitional doctype using 'quirks mode'. IE7 renders it using something
delightfully called 'Almost Standards Mode' (See
<URL:http://hsivonen.iki.fi/doctype/>). And my page design is obviously
triggering one of the 'almost' bits...
I think the doctype sniffer in IE 7 is still rather easy to fool, try
both an XML declaration and a comment before the DOCTYPE and IE 7 might
render in quirks mode as you say IE 6 does for that site.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Mar 22 '07 #3
in message <46029dc0$1@kcn ews01>, Joseph Kesselman
('k************ *@comcast.net') wrote:
Simon Brooke wrote:
>It CANNOT be beyond the wit of the world's largest and richest software
company to build something that does this right, surely!

As far as I can tell, MS believes that IE does everything right and the
other ("standards-compliant") implementations are wrong.
You'd think so, but in fact they don't even claim that:

"As for IE’s CSS compliance, I’d love to have a honest, straightforward ,
unbiased statement of exactly where we (and other browsers) are – despite
the fact that I know we would be behind today.[1]"

The IE7 teams priorities were, apparently, "...securit y, end user
experience, and standards improvements... " in that order [op cit]; also
here:

"...our top priority is (and will likely always be) security – not just
mechanical “fix buffer overruns” type stuff, but innovative stuff like the
anti-phishing work and low-rights IE. For IE7 in particular, our next
major priority is removing the biggest causes of difficulty for web
developers.[2]"

So no, they don't think their implementation is right, but they think it
isn't an important priority.

[1] <URL:http://blogs.msdn.com/cwilso/archive/2006/08/10/694584.aspx>
[2] <URL:http://blogs.msdn.com/ie/archive/2005/07/29/445242.aspx>

--
si***@jasmine.o rg.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

;; Good grief, I can remember when England won the Ashes.
Mar 23 '07 #4
Simon Brooke schrieb:
The IE7 teams priorities were, apparently, "...securit y, end user
experience, and standards improvements... " in that order [op cit];
If web developers used only standards-compliant code without any hacks
for IE, the user experience with IE would often be pretty bad :-)

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Mar 23 '07 #5

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

Similar topics

35
5187
by: Dr.Tube | last post by:
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.
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
16
2944
by: Jeff Thies | last post by:
Well, it's probably past time for me to regularly include doctype in my html. What is quirks mode and how do I avoid it. I seem to recall a specific url is required. What is the suggested doctype for html4.0 transitional? That's probably what I'm writing. Also, what's the differences between IE5(windows) and IE6?
8
2400
by: Chris Sharman | last post by:
I've got the following url (centre generated by cgi, and including banner, menus, etc designed by someone else) - http://services.ccagroup.co.uk/upbin/oformw?&whsmithwedding This looks as intended on a fair range of browsers (the dark blue menu separators are about 5-6mm). here's identical html, but with the loose dtd referenced on the doctype- http://services.ccagroup.co.uk/proofs/unquirktest.html This gets lots of unwanted padding -...
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...
1
1517
by: don.hosek | last post by:
Here's the relevant piece of code. <div style="position:relative;height:506;width:700; z-index:1; background-image:url(images/Mat-Tan.png);"> <div style="position:absolute;z-index:2; height:0; width:0;"> <img src="images/Frame-Brown-Land.png" alt="" /> </div> <div style="position:absolute;top:100px; left:125px;"> <img src="images/poster1.jpg" alt="" /> </div>
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">
3
7219
by: DiMono | last post by:
Consider this code: <input type="button" value="u" style="text-decoration: underline;" /> With a complete doctype definition, Firefox will not render the underline, but IE will. With an incomplete doctype definition, Firefox renders the page in quirks mode, and the underline is rendered. I want the underline to render, but I don't want the page to load in quirks mode. Is there a way to make this happen?
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9474
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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...
0
9939
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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
3
2870
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.