stonean/slim — Issue #237: No support for H5BP IE conditionals on HTML, and 'or not IE' conditional?
Author: MortyEU
Created: 2012-02-26 14:37:41+00:00
State: open

The HTML 5 boilerplate project has popularized the following HTML 5 markup:

This kind of markup is becoming quite common in our industry. For the life of me, I cannot reproduce this output in Slim.

**As a simplified test case**, consider:

doctype 5
/[if IE]
html
/[if !IE]
html
head
body

Which outputs:

I'm no expert, but it seems to me that the above has multiple issues:

* The 'child' markup of the IE conditional is fully contained within the IE conditional. I.e. there appears to be no support for HTML's non-XML nesting, ``

* There seems to be no support for the 'or not IE' construct, which is necessary for targeting all non-IE browsers. The important bit of output markup for 'or not IE' is in how the conditional comment is closed. As an example, greater than IE 8 or not IE: ` `

As I'm new to Slim, can someone please confirm that this is a design issue with Slim, and not just a case of me not understanding the documentation?