Thursday, July 28, 2011

Internet Explorer and Standards Compliance

Just came across a javascript code snippet inside a try-catch block like this -

try{
.......
.......
}
catch{
.......
.......
}

The best part was a very innocuous looking comment that had deep meaning.

The comment was inside the try block, and it read -
"//standards complient; doesn't work in IE"

And the code in catch block was -
"//IE only"

So many times people fail to understand reasons behind why generally opensource guys are pissed off with Microsoft products. This comment should be more than sufficient for them to understand why.

Ask anybody who works in web designing and development and at some point in time he will crib about how IE disregards standards from HTML to CSS to Javascript.

Quite a lot has been written about Microsoft's embrace-extend-extinguish policy, apart from its disregard for standards. But this single comment captures it all.

Standards complaint; doesn't work in IE. Moral of last 10 years expressed in mere 6 words.

No comments:

Post a Comment