Je suis Alex Lauzon

19/01/2004
à 11h27

De la rigueur de Safari
et du laisser-aller d'Internet Explorer

Extrait: Safari has draconian XML error handling. If the file isn't well-formed, Safari won't display it. Mozilla does the same, which should come as no surprise, since the two browsers use the same open-source XML parser (expat).

Relaxing restrictions on well-formedness is a slippery slope, and where does it end? Consider all the "helpful" rules that exist in HTML today thanks to early versions of Netscape and WinIE. Did you know that any h1-h6 tag can close any other h1-h6 tag? Try it. Open an h1, type some text and then put in a close h2. It will close up the h1 in WinIE and Mozilla. (I haven't yet fixed this "bug" in Safari.) Try specifying a close tag for a paragraph by itself. You'll get an empty paragraph in Safari, Mozilla, and WinIE.

Je me range définitivement du côté des puristes en ce qui concerne la validité du code. C'est essentiel. Le principe de rigueur existe partout. En pâtisserie, si une recette exige deux jaunes d'oeufs, c'est deux qu'il faut y mettre pas trois ou deux et demi. C'est deux et c'est tout. Les fureteurs doivent absolument interpréter le code comme il se doit. Safari et les différentes saveurs de Mozilla font assez bien ce travail mais c'est IE le gros problème.

Il y a déjà eu une campagne web pour mettre les fureteurs à jour. Il faudrait peut-être une nouvelle campagne pour indiquer aux internautes qu'il existe une alternative à Internet Explorer.