Post a Comment
If url == "http://www.webstandards.org/action/acid2/" Then
Try
Contents.RenderByStandards()
Hell.Freeze()
Catch
Contents.ReplaceAll("<img src='acid2face.gif'>")
End Try
End If
Actually, my guess is that "standards mode" simply refers to the "usual" mode for rendering web sites which have a correct DOCTYPE declaration etc... (as opposed to the so-called 'quirks' mode, see http://en.wikipedia.org/wiki/Quirks_mode )
This strategy of having two modes is pretty common, not just with IE but also with other browsers.
Best,
danB
Yep. Firefox 2.0 has three modes even: standard, semi-standard (had a doctype but quirked) and quirks.
I know this because I found a site that rendered fine for me, but the other guy claimed it was broken in Firefox. It was ... in Firefox 1.5, because 1.5 really enforced the claimed doctype.
Ever since version 6, IE has had a "standards-compliant" mode and a "compatibiltiy" mode equivalent to Firefox quirks mode. The quirks mode is basically laid out like IE4, and the standards-compliant mode is supposedly laid out according to web standards, though the actual compliance with those standards has been improving gradually. IE7's standards-compliant mode is actually pretty good - though not all the way there yet, IE7 can render most pages pretty close to the way they would render in Firefox and such.
You have to trigger standards compliant mode by including a proper doctype declaration. There are pages on MSDN that list the doctypes that will trigger it, a pretty long list that includes all modern HTML 4 or XHTML 1 standards.
MSDN changes their linking structure pretty often, but this page seems to work right now: http://msdn2.microsoft.com/en-us/library/ms535242(VS.85).aspx
Edit: Got the initial version wrong (is IE6, not 5).
Edited 2007-12-19 22:57
Both IE AND Firefox have a quirks mode and a standards mode. If you use the correct DOCTYPE and have valid code, they are supposed to render the page according to W3C standards, otherwise they revert to a compatibility mode for older, non valid HTML. There's lots of good reasons for this.
Every browser engine I know has at least two modes:
Standards compliance mode.
Quirks mode.
If a HTML file has a correct header, the browser usually tries to render the HTML file according the specifications in the header (like HTML 4.0 strict etc.). If the renderer detects lots of errors, it falls back into quirks mode. The quirks mode is the really hard part to program in a renderer. It tries to interpret common mistakes by web page authors the way they might have intended it and not how a standard decribes it. The quirks mode is the mode older KHTML versions and iCab lack. That's also the mode Apple vastly improved in WebKit compared to older KHTML releases.
At least Firefox shows you which mode it's using: Use Tools -> Page Info ("General" tab).
With HTML there are a couple of doctypes at the top of the page. There is strict which is usually considered standard mode. Then their is traditional or loose which allows backwards compatibility. This is all dependent on the web developer not personal settings of the browser
Firefox and Opera must be useless then. If you are browsing OSNews in Forefox right click on an empty part of the page, select 'View Page Info'. Look for render mode. You will see it says 'Quirks Mode'. I believe all browsers do this. I like developing in XHTML 1.0 Strict as browsers seem to have the least differences that way. All browsers need to have different modes. If the detect missing, bad or old documents types then they default to the 'quirks' mode. If it is well formed and modern they use the standards compliance mode.
I modded you up. Because I do agree that it's way too late.
I hate this penomenon where a company fails to deliver something and finally do so way beyond any reasonable time table and then people are even thankful for it.
Thankful for what? Not respecting standards for years?
Exactly, it is Microsoft's own fault we have to worry about millions of non-standards compliant web pages!! I remember when web-programming meant looking at the standards, and adhering to them properly.
If you had the wrong doc-type, you got the wrong result.
All the extra handling by the browsers means the internet will never become standards compliant, but will rather just work well enough ( creating greater obstacles to overcome in order to effectively compete with MS ( that is the idea anyway )).
I would rather have every web-page using exacting standardized methods than having my browser fall-back into a guessing game ( while consuming more energy and RAM ) just so pages designed for Internet Explorer ( or maybe even just malformed HTML X.x ) will look somewhat close to how they are meant to look.
Hrm, but no one is willing to go that far. (it would make it seem like your browser is the one that sucks, when it is in reality the web pages which suck ).
--The loon
So that "blue e" will become standard compilant ?
The fact that IE was not standards-compliant has never been an argument to choose Linux over Windows. It has been, however, an argument that Microsoft seeks to impose its own de facto standards over those of the W3C.
This is good news for everyone, as we all benefit from MS ahering to internationally-recognized independent standards. Please don't try to start another flamewar over this.
Well, then see that comment please: http://osnews.com/permalink.php?news_id=19058&comment_id=292036
Also - if IE will pass acid test, what will Opera Software ASA do ? Sue Microsoft again, this time "for being a monopoly which complies to web standards" ? ;-)
Also - if IE will pass acid test, what will Opera Software ASA do ? Sue Microsoft again, this time "for being a monopoly which complies to web standards" ? ;-)
Hih, nice one
The truth is, this announcement kind of undermines one of the biggest points of Opera's claims against Microsoft. They _did_ claim Microsoft does not even try to be fully standards-compliant yet this proves it otherwise.
On a personal note: I don't even care that Microsoft ships IE with Windows. It's good that there's atleast some browser available to those users who use Windows. Opera is a good browser as-is so why the need to sue others anyway..
That comment was not an argument but an answer to your own tendentious question. And you do realize, anyway, that konqueror is not linux-specific, right?
Regarding Opera, considering they've not sued MS... I guess they will keep asking the same, which now might mean making IE8 available for all current MS operating systems.
Please explain exactly how that post has anything to do with what I said. I really tried hard to find relevance between a) someone answering your question as to whether it was possible or not to remove Konqueror from a KDE system (it is), and b) the fact that IE non-compliance with regards to standards is or not an argument to choose Linux over Windows.
I'd say you were grasping at straws, but it's way beyond that. Please stop wasting my time, and that of other OSNews readers. Thanks.
Call me ignorant but - what's the point of the Acid2 test? Does it have any real world relevance or is it just a technical exercise?
I wonder what happened to the original idea of HTML - being a content markup language with the web browser being a user configurable reader. In the beginning, the web page would simply mark paragraphs, headers, lists etc as such and the web browser would display them using the fonts and colors the user specified. That way, everyone could read web pages using his favorite fonts using the colors that were best for his display and eyes.
Now everyone tries to nail everything on a web page to a precise pixel position, regardless of what screen resolution, web browser or system fonts a user has set. This is causing problems for users with eyes or monitors that are not as good as the designers'. Some people need large fonts and high contrast colors to read their pages. Why invent tons of new HTML features that take away the users' freedom to pick their own fonts and colors?
The point of the test is to see if they are compliant with W3C HTML and CSS 2.0 specifications.
As for your points about accessibility, there are other tools for that, such as screen magnification (hey, I use the Compiz Fusion screen zoom all the time, and I'm not even visually impaired...). As for legible fonts and good contrast for text on a web page, these should always be a priority anyway.
You know there are options in most browsers to over-ride fonts and colors of text.
The point is, that sites are "designed" ie they are made too "look" a certain way. Much like a picture. You don't go to the Museum with a bucket of finger paints to make every picture look the way you want it to... This is not a freedom of choice issue, the user has the freedom to choose not to ever return to that site or even look at it. As a designer it is "MY" choice on how that site looks and if "I" make bad choices and no one wants to look at it performs like crap on other people's machines, then that is on "ME".
See how that works? Your choice to or not to visit the site, My choice, how it looks because I made it.
I believe you are missing the point. I think the GP was referring to a time where HTML was just for content and people didn't futz around with making it "look" a certain way. After all, all academic papers look the same. It's about making it about the written content with HTML only being used to help mark out which part of the text files are what.
Now while I empathise with the GP's position, I concede that it is your site and you can (sadly) do whatever you want with it and that's your right. But please don't misrepresent their point.
As an aside: I hate how when people want to "learn to make webpages" they mean all that glitzy shit and formatting and animations and flash and want to skip over semantic mark-up which (arguably) is what HTML is really about. And because of the over-abundance of crap and under-abundance of semantic information, scrubbing HTML for data is much harder than it should be.
To see how seriously I take this just have a gander if you will at these notes I made myself just for class http://tiny.cc/0AL0T . Have a gander at the HTML and think would you rather write a Perl script to search that or a Dream Weaver mess.
Edited 2007-12-19 23:38
After all, all academic papers look the same
Totally untrue. They differ greatly from subject to subject, journal to journal and year to year. Two papers published in the same journal on the same year probably look similar (assuming it's one of the journals where the author cannot typeset their own paper), but beyond that there is nothing that says they have to even look vaugely the same. I also know plenty of academics who have gotten into massive fights over exactly how their paper should and shouldn't look when printed.
Oh all that semantic stuff is bullshit given the technology. Unless you want your site to look like 1994, you have to mix presentation with content...at least if you can't use technologies like XSLT and XSL-FO. CSS alone is NOT powerful enough to carry the burden of being the presentation "layer".
Your website is fine...but it's very simple content that doesn't require much in the way of formatting (i.e. a toy website)...and it looks like 1994. What if I want to make a website that looks nice and is dynamic and has much more complicated info? Good luck doing that with purely semantic XHTML plus some CSS.
I'm making (yet another) internal web application at work, and although I strive to make the HTML very simple, it's still not possible to actually produce semantic-only HTML. If I did, I'd have to start sacrificing functionality and the appearance would suffer as well.
I think the point of the OP is to get beyond looks and focus on content. I've used CSS and the colour actually has meaning: there is nothing just for show there.
Definitely don't care that it looks like 1994, it does what it supposes and has nothing on the page that doesn't have a purpose.
So I guess the original point is just a plea "can't we just stop caring about how shit looks?". You may not agree, and I wouldn't force you to if I could, all I will do is ask.
And you, sir, represent the antithesis of the web. The entire premise behind it is to be inter-operable between different hardware architectures, operating systems and client output capabilities.
If you're so concerned about how it looks --going back to the picture in a museum analogy--, just present a giant raster graphic. It'll be inefficient and lack any semantic information, but it doesn't seem like you care about any of that.
It's not an issue of whether or not you have a right to design a site that is completely flashy, barely usable garbage, it's a matter of whether or not such sites are crap.
Sites which utilize, for example, Flash-only animation, or have text over-running and overlapping borders and other text because I don't run at some ridiculous short bus 1995 era resolution that can make use of tiny fonts (and therefore have to increase the minimum allowable font size in my browser settings), just *suck*. And this happens to a fair number of sites I visit - the sites are designed with inelastic widths, ridiculously miniscule text sizes (clearly designed with a "recommended resolution" - or worse yet, the resolution the designer happens by sheer chance to be running on their own workstation), so that they look like utter crap on my monitor.
Maybe some people like women with tons of makeup, music videos, advertising, and other such forms of flashy form-before-function "expression," but I don't. You have every right to design that kind of pretentious stuff, but we're just discussing whether this is something good or not, and I say that it absolutely is not.
If with the flick of a switch right now I could basically revert the whole Web back to flexible HTML which displays properly on almost any browser or device but has no bling and requires few or no plugins, I'd do it in a heartbeat.
No offense and nothing personal.
On a semi-related note, I run this "Noscript" plug-in in Firefox. It's fascinating. Basically I have it set to disable all scripts, and then I manually allow scripts to run as needed. On the sites I browse, on average one out of every four scripts that web pages try to run is actually required for the page to display properly. I've had a good time watching scripts *not* run as they were intended. So much web design displays nothing so much as the egos and excesses of web designers and the suits (who clearly don't use the internet much) that they pander to.
I'm not opposed to the judicious use of CSS, javascript, and other such things, but I swear sometimes I think people use them just to use them.
Function before form. Substance before style. Information before flash. It's not a matter of rights; it's a matter of wankery vs. usability.
You know what looks great on my monitor? Wikipedia. More of that. Less allmusic.com.
I agree about the font thing. It can be done without losing your pretty website. With a thoughtful use of CSS and HTML, you can actually make a website that scales up and down with the font size. You might have to throw in a little JavaScript to get it to work, but that's how the web is these days.
Oh I SO agree with you. I use noscript as well, and it's absolutely astounding how many sites are unusable or even give you a blank screen when you browse without Javascript. Now, clearly there aren't a huge number of people browsing without Javascript, but that is no excuse.
I'm a web developer and I develop all my sites to degrade so that you need neither Flash or Javascript to see all the content. I only use Flash and Javascript to add to the experience. Not only does this allow the sites to be viewable on the widest range of platforms, it's helpful for search engine optimization and accessibility.
The Acid2 test is a test for CSS 2.0 rendering compatibility: if a browser does not render it correctly it might render other websites utilizing CSS incorrectly and even render some of the content there unreadable. CSS can be used to make websites not only more attractive but also to _enhance_ readability. So, if a certain website is clear and attractive on a CSS-compliant site it may even be completely unusable on a non-CSS-compliant one. That's why it's good to pass tests such as Acid2: it ensures your browser does indeed render CSS content properly. I hope you realize that CSS is not about rendering fancy pictures, it's about enhancing overall experience of a website.
Oh, and as a side note: how dull and boring would websites be if you only used HTML and nothing else?
Boring, maybe, but they would be clean, readable, accessible, universal, etc.
I doubt it. CSS, AJAX etc. doesn't make it harder to write a clean easy to read website. If you think back to the web back in the HTML only days I'm sure you'll recall plenty on horrible unreadable, unaccessible and unusable sites, I know I do.
Anybody who wants to write a flashy but useless website that is all style over substance will do so no matter what tools you limit them to. People who want to make a clean, readable and accessible website will have no problem doing so while using all the latest in HTML, CSS and whatever.
Oh, and as a side note: how dull and boring would websites be if you only used HTML and nothing else?
About as boring as most video games today that rely too heavily on graphics/presentation and have nothing else of value to offer.
In the old days, having a website with great content used to be enough. Then, Generation iPod came along, and you know the rest.
In the old days, having a website with great content used to be enough. Then, Generation iPod came along, and you know the rest.
I hope you're not implying I'm one of the "Generation iPod".. Since I'm way older than that. And haven't never touched or seen an iPod in action
But well, I didn't mean Flash and all such fancy stuff, I was only talking about CSS. Proper usage of CSS makes sites a whole lot more readable and easier to comprehend and browse than plain HTML. With HTML you're forced to use tables etc if you've got lots of stuff to lay out on the page and you want it to be easily comprehensible. CSS allows you to easily lay them out clearly on the page, among other things. You do realize that it's usually used for completely other stuff than the "flashy" things? It's Flash that's (abused?) used for those 
Great content is still enough, but the web is used for many different things today which maybe the Generation Typewriter isn't realizing.
Preferring a certain type of video game or website is one thing, but limiting yourself to only one kind is still likely to be a loss for you.
Doesn't matter if the layout is 'boring' as long as the content is interesting. Why bother with 'exciting' but non-standard stuff like CSS and XHTML when HTML can be rendered on anything from a Commodore 64 on up?
"Doesn't matter if the layout is 'boring' as long as the content is interesting. Why bother with 'exciting' but non-standard stuff like CSS and XHTML when HTML can be rendered on anything from a Commodore 64 on up?"
Okay, you lost me here. CSS and XHTML are standard, with the standards set forth by the W3C, the same ones who standardize HTML. How are CSS and XHTML non-standard? I am willing to bet the commodore 64 can not display all HTML correctly either, as it has changed much since that was a usable system.
Actually, better CSS support will help push things back toward that original idea of HTML - being a content markup language. HTML has been abused into the role of page layout language (misuse of tables mostly) because there was nothing like CSS to allow HTML authors the page layout control they needed.
Supporting CSS means HTML authors can separate the style (CSS) from the content (HTML). That means that we can better achieve the original intention for HTML that you talk about. A web page that uses CSS for its styling allows you to apply YOUR OWN css to the page for easier reading. For an example of this in action, visit www.csszengarden.com
CSS is NOT enough to make a semantic web. It is too inflexible, and too focused on stylistic details rather than overall formatting. XSLT and XSL-FO are (together) one option for creating a semantic web. Everything could be in XML + DTDs and then it could be converted to non-semantic HTML+CSS+JavaScript when viewed in a browser, but search engines would only see the XML. There could be other options. At the very least, CSS isn't enough. You often have to add extra markup to the HTML to get the appearance you want because CSS has no way of adding additional content to the HTML. That's where all these nested div's and extraneous div's come from. People also end up using lists for menus, tables for layout, etc. CSS is not up to the job.
The point is to see how well the browser handles abuse. Apart from that I fail to see any relevance of the Acid2 test, but hey! It gives all of them a new term to use in marketing.
XYZ Browser v. XXIII - now Acid2 compatible with accelerators and reduced CO2 emission (or what ever the marketing dudes come up with).
This is a CSS test, not a HTML test.
If a website is well-written, all the design rules are inside CSS, while the HTML itself only provides the topological information (this is a headline, this text is emphasized).
IE, if you use a "typical" browser like Firefox or IE, you want the website to be shown according to the CSS rules and you want that to be done right, how it is meant to be.
If you don't want this, you can disable CSS or use a browser who doesn't understand it, like lynx, and have the website "your way".
The problem is, many web developers don't really get it with the seperation of content+structure and design. That said, tests like ACID still make sense.
I tried FF 3 beta 2 on my Linux laptop just today and it failed Acid2. It had some odd frame thing in the middle. Yep, there's an OBJECT tag in the source with data set to the webstandards.org 404 Not Found page.
But FF3 loads the page into that OBJECT. Maybe it isn't supposed to. What was that OBJECT tag supposed to test?





