Обычная операция

Статья в MSDN об условных комментариях в IE начинается с удивительного утверждения:

One of the most common operations performed in a Web page is to detect the browser type and version.

Может быть у них это и common operation, но для нормальных людей это всё-таки скорее workaround.

Conditional comments make it easy for developers to write pages that downgrade gracefully in less capable browsers, while making it easy to take advantage of the enhanced features and performance offered by Internet Explorer 5 and later versions

Less capable then IE 5? Ну это-то ещё ладно, просто смешно, но не более того. А вот дальше просто бред:

When a downlevel browser encounters a downlevel-hidden conditional comment, the browser does not see the inner HTML inside the comment, and the content elements are not downloaded and rendered.

Вот это да!

Мне очень нравится, что любой не-IE5+ называется «downlevel browser».

Дальше
2 комментария
Oleg 2005

Статье, наверное, лет пять, так что enhanced features действительно имели место быть. А вот за not downloaded это да — 5 баллов!

alshur 2005

content elements — это картинки, внешние таблицы стилей и т. д.
они действительно не грузятся и не отображаются, если условие не соблюдается

Мои книги