H
Henri Sivonen
hsivonen.iki.fi · Personal blog · on HN since 2008
Henri Sivonen, a Mozilla developer who wrote Firefox's HTML5 parser, writes about browser quirks, doctypes, character encodings and web standards.
What HN saysHN commenters cite it for explanations of doctype switching, about:blank behavior, the PNG gamma problem and IE rendering modes.
28HN people shared it
12linked it in comments
18stories submitted
305story points
13 years agolast shared
2008people per year2026
Most-shared posts
- 1Activating Browser Modes with Doctype6 people · 4 points · first shared 2009 · discussion on HN
- 2The Joy of about:blank5 people · 94 points · first shared 2011 · 17 comments on HN
- 3The Sad Story of PNG Gamma “Correction”3 people · 19 points · first shared 2009 · 2 comments on HN
- 4Vendor Prefixes Are Hurting the Web3 people · 10 points · first shared 2011 · 1 comments on HN
- 5The crazy things that IE8 did to render web pages...3 people · 5 points · first shared 2009 · discussion on HN
- 6Accept-Charset Is No More2 people · 54 points · first shared 2012 · 21 comments on HN
- 7WebM-Enabled Browser Usage Share Exceeds H.264-Enabled ones1 people · 94 points · first shared 2012 · 55 comments on HN
- 8-webkit-HTML51 people · 8 points · first shared 2010 · discussion on HN
- 9Schema.org and Pre-Existing Communities1 people · 7 points · first shared 2011 · discussion on HN
- 10Spolsky lives in a Reality Distortion Field1 people · 7 points · first shared 2008 · 1 comments on HN
- 11A Lecture about HTML51 people · 2 points · first shared 2010 · discussion on HN
- 12The <spacer> HTML Element Is Gone1 people · 1 points · first shared 2010 · discussion on HN
- 13View source1 people · first shared 2011
- 14Almost precedent1 people · first shared 2012
What HN people wrote when they linked it
yuhong · 2013-01-17
In case of CSS, the important browser was IE.
This reminds me of DOCTYPE switching. From http://hsivonen.iki.fi/almost-precedent/:
"Back when the Quirks Mode and the Almost Standards Mode were introduced ... committees created specs and that were enshrined as W3C Recommendations before there was solid implementation experience. Then the Web Standards Project lobbied browser-makers to implement the W3C specs as they were. The mindset was that the specs given from above couldn’t and shouldn’t change. People thought that vigorous upgrade evangelism would work and make Web authors change their existing sites."
Note that the Web Standards Project was also the one petitioning Netscape to cancel Mariner, which ended up contributing to the problem. Why did non-IE browsers have to implement document.all?
mbrubeck · 2012-07-09
That's exactly what Firefox developers like Henri Sivonen [1] and David Baron [2] think, and their proposals have a lot of support within Mozilla and a high chance of being adopted. It would be great to get other vendors on board too.
[1] http://hsivonen.iki.fi/vendor-prefixes/ (see "Keep Experimental Features in Experimental Builds")
[2] https://groups.google.com/d/msg/mozilla.dev.platform/itl6mtx2dxI/mbdPv… (dbaron is Mozilla's representative to the W3C Advisory Committee as well being a principal engineer on the layout team and deeply involved in the development of CSS over the past decade.)
mrshoe · 2009-08-09
The site looks great and I think it's a great idea.
Here's one small visual bug you can fix: you suffer from the Safari PNG gamma problem (http://hsivonen.iki.fi/png-gamma/). In short, a PNG of a certain RGB color will not match up with that same RGB CSS color in Safari. The easiest solution is to use a 1px by 1px image for your background instead of specifying it as a color in CSS.
Good luck!
unwind · 2013-08-13
Here's Henri Sivonen (the author of the HTML5 parser that is now Firefox' sole parser) on the subject: http://hsivonen.iki.fi/about-blank/.
From a quick reading, it seems to be a mix of synchronous vs asynchronous parsing, historical reasons, and stuff. He identifies eight different behaviors.
gsnedders · 2013-02-27
No, IE 10 has IE 5.5 (quirks — IE6 was where quirks mode was introduced), IE7 "Standards Mode", IE8 "Standards Mode", IE9 "Standards Mode", IE10 "Quirks Mode", and IE10 "Standards Mode".
http://hsivonen.iki.fi/doctype/ie8-mode.png is a flow-chart of the modes and switches for them as of IE8.
duncans · 2013-01-31
I could have done without the colour "correction" nonsense that PNG introduced: http://hsivonen.iki.fi/png-gamma/
drhowarddrfine · 2012-02-06
All browsers use UTF by default and all web pages should be serving UTF-8: http://hsivonen.iki.fi/accept-charset/
elisee · 2011-11-29
Just to be clear, Firefox doesn't have a validator built-in. It's just syntax highlighting, and it has recently been enhanced to use the same HTML5 parser as the rest of the browser. So yeah you can see some of the errors you might make in your markup but it's very far from what an actual HTML5 validator should do. It doesn't even report all parse errors (and isn't meant to).
I'm pointing this out because of a recent blog post by Mozilla dev Henri Sivonen which says: "Please do not advertise the new View Source implementation by saying that Firefox now has a validator in the View Source window."
(see full post here for all the details, there's a section named Limitations: http://hsivonen.iki.fi/view-source/)
mathias · 2010-05-31
By ‘current browsers’, I mean all browsers in use = A-grade browsers, including IE6. See http://hsivonen.iki.fi/doctype/ and http://ejohn.org/blog/html5-doctype/#comment-296891
The HTML5 spec is written with backwards compatibility in mind, and the DOCTYPE is one of the examples. HTML5 specs current behavior and implementations. The DOCTYPE would’ve been different if browsers didn’t already support it.
I realize a lot of additional info is lost on people who are viewing the slides but couldn't attend the presentation, and am working on a blog post with some more explanations.
Rust · 2010-05-28
Oddly enough, the HTML5 doctype actually keeps most browsers in standards mode, including FF 3.x and IE 7+ - http://hsivonen.iki.fi/doctype/ (also includes info on why you shouldn't use XHTML).
paulrouget · 2013-08-13
The Joy of about:blank: http://hsivonen.iki.fi/about-blank/
ZeroGravitas · 2009-09-02
That's not true.
The browser doesn't validate the content and neither knows nor cares if it would. It does something called doctype sniffing to choose whether it goes into one of a few different modes based entirely on the declaration (or lack of the same) at the top of the document.
"However, it is important to realize that the Quirks mode vs. Standards mode is predominantly about CSS layout and parsing—not HTML parsing.
Some people misleadingly refer to the Standards mode as “strict parsing mode”, which is misunderstood to imply that browsers enforced HTML syntax rules and that a browser could be used to assess the correctness of markup. This is not the case. The browsers do tag soup fix-ups even when the Standards mode layout is in effect. (In 2000 before Netscape 6 was released, Mozilla actually had parser modes that enforced HTML syntax rules. These modes were incompatible with existing Web content and were abandoned.)"
Quoted from (and far more details) here:
http://hsivonen.iki.fi/doctype/