tags:

views:

69

answers:

3

I'm working with a Web Application and it's currently rendering in Quirks Mode. My feeling is that we should change this to use Standards Mode.

If were make this change there will be some pain in the short term as I would expect some of the pages that currently render fine in Quirks mode will need tweaking to show properly in Standards mode. If I'm going to do persuade other people this work there will need to be some benefits too.

Whilst easier page layout would be nice I'm not sure it would be enough on its own - as most the design for the app is done - so I was wondering if Standards mode offers any other more immediate benefits. Do pages render quicker? Will the browser use less memory? Anything else?

For what it's worth this application is used almost exclusively on IE6/7/8 but I'd be interested to hear how this applies to other browsers too.

+3  A: 

Here are the benefits to standards mode:

1) Correct and accurate code is easier to maintain among a group of developers.

2) Standards mode produces a more reliable rendering of the content, which is important for cross user-agent compliance with regard to assistive technologies.

3) Code that is uniform and valid is easier for accessibility concerns.

4) Your code will have a far longer lifespan without conflict to future changes in the specification.

All good stuff, but sadly I was hoping for some other *immediate* benefits to help persuade everyone else that we need to make the switch. Have edited the question to make what I'd like a little clearer.
Dave Webb
Accessibility may be a big deal, depending on the website. In some countries, depending on the type of website, if it's not fully accessible, then it may be breaking the law. For example, see http://www.rnib.org.uk/PROFESSIONALS/WEBACCESSIBILITY/LAWSANDSTANDARDS/Pages/uk_law.aspx
darasd
+1  A: 

To add to austin's comment, there's a pretty good read over here about the differing modes: CSS - Quirks mode and strict mode

Yes, some of your markup will probably no longer be valid once you transition to standards mode. Developing under quirks mode targets older browsers that were programmed before CSS was accepted by Netscape and IE.

Since most browsers today are capable of rendering the W3C standards, I'd recommend targeting that as your goto mode. Sure it will be slightly painful now, but in the long run it is well worth it.

espais
I agree. But if there were other benefits then it would be easier to persuade everyone else that we need to take the hit now.
Dave Webb
The largest benefit is really standardization. As far as right-now benefits go, you can be sure that most browsers will support the CSS that you write, and will render it properly. You will reach a larger group of people with standards-compliant CSS than you will with specific browser-targeted CSS. Does that help? It sounds like you're putting together an analysis to persuade people other than yourself :)
espais
+1  A: 

I don't know about your user base, but allowing the use of non-IE browsers - that count for over 35% of the global market - will surely please some of your customers. Using quirks mode almost forces your users to stick to IE.

At some point (probably in the distant future, though) IE will drop quirks mode, then you'll have to recode anyway. Better to do it now before your code grows beyond repair. Switching to a strict doctype now will save you development time as soon as you fix the initial problems.

I'd suggest trying the strict doctype and seeing what happens, and how broken the design is. Remember, the HTML doesn't have to be valid for strict mode to work. Font tags and alignment elements/attributes work fine in strict mode, though you should gradually phase them out and replace with CSS.

DisgruntledGoat
Again, all good an I agree with it. Am still hoping for a benefit we get right now so I can get everyone else to agree too. Our user base buys our app to run internally and we have literally zero demand for support for any browser other than IE.
Dave Webb
I can see your dilemma, but very few things in development have an instant impact. Having said that, predictable rendering, faster development and so on should show their benefits quickly. Really that should be a big enough reason on their own. How much time do you currently spend working around flaws in IE?
DisgruntledGoat