[ 
https://issues.apache.org/jira/browse/WICKET-3433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991891#comment-12991891
 ] 

Pedro Santos commented on WICKET-3433:
--------------------------------------

Wicket chunks the conditional comment and parse only the markup inside it. 
Closing the html the as many times it was opened (as you suggested ), and 
wrapping then inside the correspondent conditional comments (as I'm suggesting) 
generate valid html to browser, I just tested in http://validator.w3.org/check

> Wicket parses HTML inside IE conditional comments when they appear between 
> the doctype declaration and the <html> tag
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3433
>                 URL: https://issues.apache.org/jira/browse/WICKET-3433
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M3
>            Reporter: Alan Shaw
>              Labels: HTML5, boilerplate, doctype, html, parser
>         Attachments: html5boilerplate.ui.wicket.parsefail.zip
>
>
> I cannot use the HTML5 Boilerplate HTML with wicket. Wicket appears to parse 
> HTML inside IE conditional comments when they appear between the doctype 
> declaration and the <html> tag.
> The first lines of the boilerplate html look like this:
>       <!doctype html>
>       <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
>       <!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
>       <!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
>       <!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
>       <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> 
> <!--<![endif]-->
>       
> ...which causes a problem for wicket, as it thinks there are five opening 
> <html> tags on the page.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to