h5bp/html5-boilerplate — Issue #856: Dreamweaver templates and IE conditionals / possible solutions
Author: supsup
Created: 2011-11-17 19:13:39+00:00
State: open

When you generate a page from a template in Dreamweaver it should insert a comment after the tag like this:

the problem:

Confuses Dreamweaver, it basically cannot find the html tag so it freaks out and puts it's comment before the doctype like this:

which throws browsers into quirks mode.

from location:

http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/

I tried the following solution. Both appear to work, unsure which one is better or if there is another solution:

having the following in the template :

results in the following generated pages:

kind of odd look but perhaps this is the best solution.

Also tried moving conditionals to body like this:

which appears to work fine as well and has the benefit of not having a odd comment at top inside the conditionals.

Thinking about going with the conditional html version (closer to OG html5 boilerplate) but was uncertain if having the extra comment added there would cause any issues?