Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3433

Wicket parses HTML inside IE conditional comments

    XMLWordPrintableJSON

Details

    Description

      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]->
      <Unable to render embedded object: File (--[if (gt IE 9)) not found.(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.

      Attachments

        1. wicket-conditional-comments.patch
          20 kB
          Juegen Donnerstag
        2. WICKET-3433.patch
          75 kB
          Pedro Santos
        3. SimplePageExpectedResult_12a.html
          1 kB
          Pedro Santos
        4. quickstart.zip
          4.31 MB
          Christian Lerch
        5. programmatic-way.tgz
          18 kB
          Martin Tzvetanov Grigorov
        6. html5boilerplate.ui.wicket.parsefail-working.zip
          33 kB
          Pedro Santos
        7. html5boilerplate.ui.wicket.parsefail.zip
          36 kB
          Alan Shaw

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              _alanshaw Alan Shaw
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: