Unfortunately the DOCTYPE in the decorator's header.vm is not recognized by Internet Explorer, as it's not the first content in the html page: There's one comment (originating from the layout.vm) in front: <!-- Decorator tigris $
No problem with Firefox, the DOCTYPE is recognized there, despite the comment.
There has been an issue (
JS2-483) dealing with css problems by missing DOCTYPEs.
So I'd like to propose putting back the DOCTYPE into layout.vm, but now checking for being the root fragment, e.g.:
#if($myFragment == $myPage.getRootFragment())
- set the DOCTYPE and assure it's only inserted once
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Another solution would be to remove the mentioned comment. What do you think?