"The more I find out, the less I know."

Wednesday - January 14, 2004 at 03:37 AM in

Well-Formed XML?


There is apparently a debate going on now about whether browsers should accept badly-formed XML documents . For the non-technical, this basically means if you load a web page, and the page doesn't exactly meet the technical specification for that kind of page, should your browser (a) refuse to display the page, or (b) try to figure out what the page is supposed to be, and display its best guess?
I am boggled that some people might even suggest that (a) is the better choice. Ever since the beginning of the graphical web browser, it has been understood that there will be formatting mistakes, and there's absolutely no point whatsoever in turning a minor mistake into a barrier for people to navigate the web. There are even rules for dealing with HTML errors in a reasonable way (for example, ignore unknown tags; If an element needs to be closed and it isn't, then assume there's a close tag in an appropriate place; etc.).

Yes, the jobs of some programmers would be simpler if they could force everything to match the XML specifications perfectly, but guess what? The world is a messy place. Deal with it.

Posted at 03:37 AM | Permalink | | |

©
Powered By iBlog, Comments By HaloScan
RSS Feed