I am doing a rails app and I found bit issue following what @matt suggested in his answer, I am finding below issues:
HAML
!!!
= surround '<!--[if !IE]> -->'.html_safe, '<!-- <![endif]-->'.html_safe do
%html.no-js{:lang => 'en'}
%head
%body
Here is how the browser render the HTML (without ending tag at very end and adds it at declaring line itself)
<!DOCTYPE html>
<!--[if !IE]> --><html class='no-js' lang='en'></html>
<head>..</head>
<body>..</body>
So, here is the code that's working fine for me, but is there a way to make above code work ?
!!!
:plain
<!--[if !IE]><!-->
%html.no-js{:lang => 'en'}
/ <![endif]