473,397 Members | 1,974 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,397 software developers and data experts.

[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.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

[ This .sig subject to change without notice ]
Mar 22 '07 #1
4 1763
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@kcnews01>, 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, "...security, 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.org.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, "...security, 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
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...
10
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"...
16
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...
8
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...
6
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....
1
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;...
18
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...
22
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...
3
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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 projectplanning, coding, testing,...

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.