You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Robert Gründler <r....@gmail.com> on 2013/08/14 13:17:16 UTC

Rendering conditional html tags for IE CSS targetting

Hi,

i'm trying to use the markup provided by html5 boilerplate:
http://html5boilerplate.com/

They use <!--[if lt IE 7]>   <![endif]-->  comments to render different
opening <html> tags for different versions of Internet Explorer, easing CSS
selectors for IE.

Here's how it looks like: https://gist.github.com/pulse00/6230134

When using this markup in wicket, i see the following exception: Tag does
not have a close tag </html>

It looks like wicket is getting confused by the html comments containing
<html> tags.

Has anyone an idea how to implement this in wicket?


regards


-robert

Re: Rendering conditional html tags for IE CSS targetting

Posted by Martin Grigorov <mg...@apache.org>.
https://issues.apache.org/jira/browse/WICKET-3433


On Wed, Aug 14, 2013 at 2:17 PM, Robert Gründler <r....@gmail.com>wrote:

> Hi,
>
> i'm trying to use the markup provided by html5 boilerplate:
> http://html5boilerplate.com/
>
> They use <!--[if lt IE 7]>   <![endif]-->  comments to render different
> opening <html> tags for different versions of Internet Explorer, easing CSS
> selectors for IE.
>
> Here's how it looks like: https://gist.github.com/pulse00/6230134
>
> When using this markup in wicket, i see the following exception: Tag does
> not have a close tag </html>
>
> It looks like wicket is getting confused by the html comments containing
> <html> tags.
>
> Has anyone an idea how to implement this in wicket?
>
>
> regards
>
>
> -robert
>

Re: Rendering conditional html tags for IE CSS targetting

Posted by Nick Pratt <nb...@gmail.com>.
The workaround we use is to have multiple html close tags:

<!--[if lt IE 7]></html><![endif]-->
<!--[if IE 7]></html><![endif]-->
<!--[if IE 8]></html><![endif]-->
<!--[if gt IE 8]><!--></html><!--<![endif]-->


On Wed, Aug 14, 2013 at 7:17 AM, Robert Gründler <r....@gmail.com>wrote:

> Hi,
>
> i'm trying to use the markup provided by html5 boilerplate:
> http://html5boilerplate.com/
>
> They use <!--[if lt IE 7]>   <![endif]-->  comments to render different
> opening <html> tags for different versions of Internet Explorer, easing CSS
> selectors for IE.
>
> Here's how it looks like: https://gist.github.com/pulse00/6230134
>
> When using this markup in wicket, i see the following exception: Tag does
> not have a close tag </html>
>
> It looks like wicket is getting confused by the html comments containing
> <html> tags.
>
> Has anyone an idea how to implement this in wicket?
>
>
> regards
>
>
> -robert
>