“[ !IE]” conditional comments in Haml
In a HAML doc, I have: /[if IE] This is IE /[if !IE] This is not IE The first conditional evaluates properly in IE (and presumably in Firefox and Chrome, as "This is IE" does not render in those browsers). However, The second conditional does not seem to evaluate properly in Firefox or Chrome, as "This is not IE" is not rendered. I'm guessing I've done something wrong. Any ideas? When using IE conditional comments, there are two different types you need to be aware of. First, when the entire content is inside a HTML comment (between <!-- and --> ), but IE will read it because of the condition: