Conditional Comments (1106 / 1206 / 1306 / 1406)
AdminStudio 2021 | 21.0 | Application Manager
For this browser compatibility test, the web application contents are scanned for the use of conditional comments that evaluate the version of Internet Explorer or Microsoft Edge.
Caution:Some web applications use conditional comments for fixing well-known visual glitches in older versions of Internet Explorer. This test may generate false positives for such web applications.
Test Group/Test Category
• | 1306—Browser Compatibility/Internet Explorer 11 |
• | 1406—Browser Compatibility/Microsoft Edge |
Severity
Warning
Message
This web application contains conditional comment "[COMMENT]" which does not recognize [BROWSER AND VERSION] (File: [FILE_NAME]).
Background
Internet Explorer / Microsoft Edge provide non-standard conditional comments. They can be used to provide content that is tailored for a specific browser type and version (for example, dedicated HTML, stylesheet, or JavaScript code). Since the major version number has been changed in Internet Explorer 11 and later, some web applications that use conditional comments may not recognize Internet Explorer 11 or later, and they may serve incompatible content.
Resolution
The web application should be re-engineered to avoid relying on conditional comments. World Wide Web Consortium (W3C) recommendations (for example, JavaScript-based feature detection) should be used instead.
See Also