Should error messages be displayed for corrupt HTML5?
One of the primary reasons HTML is authored incorrectly today is because Web browsers do not display error messages when processing corrupt documents (constructed or transmitted incorrectly). Web browser vendors like to refer to these kinds of error messages as "draconian", i.e. unduly punitive. Why?
What's wrong with error messages?
Do Web users need to be protected from error messages?
Error messages are the norm in general computer usage. Below is a screen shot of an error message that a Microsoft Word user receives when trying to view a corrupted Word or RTF document:

Below is a screen shot of an error message a user receives when trying to view a corrupted PDF document:

Below is a screen shot of an error message a user receives when trying to view the contents of a corrupt Zip file:

Are Web users more sensitive and less able to deal with error messages than users of Microsoft Word?
Are documents on the Web not important?
If an important document is missing content or is displaying content incorrectly because the document is corrupt, wouldn't you want to know? By not notifying users that the document being viewed is corrupt, we are re-enforcing some peoples belief that the Web is just a collection of rubbish. Without error messages, are we saying that if a document renders incorrectly, that's okay, and we should be happy with the parts of the document that do render correctly?
Are Web browsers so good at auto-correction that there is no need to disturb users with error messages?
Web browsers will render the following markup without notifying users of any errors:
<html><head><title>...</title></head><body><p>...</p>
Is the markup above simply missing the closing </body> and </html> elements, or is it missing most of its content as well? Browser auto-correction simply cannot fix all types of corrupted documents.
Will people stop adding content to the Web if they have to author HTML to specification?
Authoring tools (CMS, WYSIWYG editors, etc.) can be made to generate valid markup. Only when content is authored by hand will authoring errors occur and if Web browsers displayed error messages, then the only people who would see these errors would be the people making them as they test/review their work in a Web browser. So, would error messages really discourage people from adding content to the Web?
Can error messages make people use HTML5 correctly?
Without error messages, HTML5 will be used incorrectly, just as previous versions of HTML have been. But it does not have to be so. If Web site creators want to go on using previous versions of HTML any way they want, creating Tag Soup, they can do so. But if they want to use new features (i.e. HTML5), then they need to author HTML to specification. And new content written to HTML5 specification can be authored correctly if Web browsers start to display error messages when processing corrupt HTML5 documents. So is this a fair and reasonable way to use error messages or is it draconian?
Comments are closed for this article.