Hi All,

I've got a project that I'm working on and I've found a place where I
really need to be able to use downlevel revealed conditional
comments.  Haml only seems to support downlevel hidden conditional
comments.  I found some discussion about a year and half ago on this
issue and the consensus seemed to be that because downlevel hidden
conditional comments as suggested by microsoft are not valid HTML
comments.

I discovered this link: 
http://www.456bereastreet.com/archive/200511/valid_downlevelrevealed_conditional_comments/
which shows how to do syntactically valid downlevel revealed
conditional comments.

<!--[if gt IE 7]>-->
<div id='do'>something that will work in firefox as well</div>
<!--<![endif]-->

Could we find a way to incorporate this into haml?  Is there already
some way to do this that I have missed?  Is there any way to pass a
string after the / specifying an HTML comment and not have it be
interpreted as a conditional comment.  This way I could use two
comment lines to wrap the code like this:

/[if gt IE 7]>
#do something that will work in firefox as well
/<![endif]

which i would hope would produce the above output but instead produces

<!--[if gt IE 7]> > <![endif]-->
<div id='do'>something that will work in firefox as well</div>
<!-- <![endif] -->

because it is parsing it as a conditional comment instead of a regular
comment, even though I have added the additional ">" character to the
end of my first comment.

Thanks,
Michael

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to