Le principe du MustIgnore en XML
Dans ce billet, Tim Bray analyse les éléments importants à la conception d’un vocabulaire XML. Selon lui, un des principes importants du web est le principe du MustIgnore («doit ignorer» en français).
This was an unstated axiom of the World Wide Web. When a browser runs across a weird, unknown tag, it just ignores it. This fact allowed the explosive multidirectional growth of HTML technology back in the nineties. Anybody shipping a browser could, and many did, introduce weird new tags that did weird new things. If people liked what they did, the other browsers would pick them up. Meanwhile, nothing broke, because of the unwritten MustIgnore.
En d’autres mots, lorsqu’un logiciel rencontre un élément ou un attribut qu’il ne connaît pas, il doit simplement l’ignorer. C’est un principe essentiel qui permet d’ajouter des informations à des fichiers XML sans devoir réécrire le logiciel. Il rend aussi les logiciels plus robustes.