I am trying to use an IE conditional comment based on the advice found this topic. "[ !IE]" conditional comments in Haml However it's not working, and I don't know why.
I am trying to edit a Ruby on Rails application and I am new to HAML and Rails. Any help would be appreciated.
Here is the HAML code I am trying to use.
%section#audio-controls
=surround '<!--[if !IE]> -->'.html_safe, '<!-- <![endif]-->'.html_safe do
= audio_tag( '/audios/elder.wav', :controls => 'controls', :id => 'elder_audio' )
=surround '<!--[if IE]> -->'.html_safe, '<!-- <![endif]-->'.html_safe do
= audio_tag( '/audios/elder.mp3', :controls => 'controls', :id => 'elder_audio' )
I have also tried this code, thinking it may be an issue with the audio_tag
%section#audio-controls
=surround '<!--[if !IE]> -->'.html_safe, '<!-- <![endif]-->'.html_safe do
%p
This is not IE
=surround '<!--[if IE]> -->'.html_safe, '<!-- <![endif]-->'.html_safe do
%p
This is IE