Wicket
  1. Wicket
  2. WICKET-3433

Wicket parses HTML inside IE conditional comments

    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>
      <Unable to render embedded object: File (--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <) not found.[endif]-->
      <Unable to render embedded object: File (--[if IE 7 ]> <html lang="en" class="no-js ie7"> <) not found.[endif]-->
      <Unable to render embedded object: File (--[if IE 8 ]> <html lang="en" class="no-js ie8"> <) not found.[endif]-->
      <Unable to render embedded object: File (--[if IE 9 ]> <html lang="en" class="no-js ie9"> <) not found.[endif]-->
      <Unable to render embedded object: File (--[if (gt IE 9)) not found.(IE)]><Unable to render embedded object: File (--> <html lang="en" class="no-js"> <) not found.-<![endif]->

      ...which causes a problem for wicket, as it thinks there are five opening <html> tags on the page.

      1. programmatic-way.tgz
        18 kB
        Martin Grigorov
      2. quickstart.zip
        4.31 MB
        Christian Lerch
      3. WICKET-3433.patch
        75 kB
        Pedro Santos
      4. SimplePageExpectedResult_12a.html
        1 kB
        Pedro Santos
      5. wicket-conditional-comments.patch
        20 kB
        Juergen Donnerstag
      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

            • Assignee:
              Martin Grigorov
              Reporter:
              Alan Shaw
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development