Error messages for corrupt HTML
Vlad Alexander asks Should error messages be displayed for corrupt HTML5?. Sure, why not.
Many people who do not like the idea of browsers displaying error messages for corrupt/invalid HTML tend to equate error messages with the “Yellow screen of death” that Firefox and other Gecko-based browsers display when they encounter a non well-formed XHTML document served as application/xhtml+xml.
This is often referred to as “draconian error handling” and is indeed quite harsh. But it is not the only possible way of notifying the user that something is wrong with the document they are viewing. Error notification can be a lot more discreet, like the smiley that iCab displays in the status bar. It’s sad if there are errors in the document’s HTML or CSS, happy if there are none. Click the sad smiley and you get a list of the errors. Completely unobtrusive in my opinion. Safari for the iPhone and iPod Touch has a somewhat similar feature in the Debug Console (which is hidden by default).
If you feel strongly either way about error messages for broken HTML, you may want to read An open invitation to the HTML5 team, where Vlad invites Ian Hickson, editor of the HTML 5 specification, to debate on this topic.
- Previous post: The Authentic Jobs Twenty Ten promotion
- Next post: W3C HTML Accessibility Task Force
Comments are disabled for this post (read why), but if you have spotted an error or have additional info that you think should be in this post, feel free to contact me.
Subscribe / follow
Sponsors
Authentic Jobs
- Web Developer PHP/MySQL at eMeals (Atlanta, Ga, Acworth, GA, or Birmingham, AL, Ge, US)
- Front End Developer at Domani Studios (Brooklyn, NY, Ne, US)
- Front-end WordPress Developer - Contract to Hire at HyperArts (Oakland, CA, Ca, US)
- iOS Developer at Etsy (Brooklyn, NY, US)
DreamHost web hosting
Use the promo code 456BEREASTREET3 to save USD 20 when you sign up for DreamHost

