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

Internet Explorer fails fails to properly include conditional stylesheet links added via AjaxRequestTarget

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.4
    • 6.4.0, 1.5.10
    • wicket
    • None

    Description

      CSS references added like this

      @Override
      public void renderHead( IHeaderResponse response )

      { super.renderHead( response ); response.renderCSSReference( new PackageResourceReference( getClass(), "TestLabel.css" )); response.renderCSSReference( new PackageResourceReference( getClass(), "TestLabel-conditional.css" ), null, null, "gte IE 8" ); }

      will not be taken into account by Internet Explorer (tested with 8 and 9) at when rendering the document.
      I stepped though wicket-ajax.js and saw that the function added in Wicket.Head.Contributor.processComment will actually be executed and a new child node will be appended to the head node of the document. Unfortunately it seems IE disregards conditional comments added in this way.

      I encountered this using Wicket 1.5.4.
      I'll upload a quickstart.

      Attachments

        1. HeaderResponse.java.diff
          0.3 kB
          Jonas Pohlandt
        2. quickstart.zip
          22 kB
          Jonas Pohlandt

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            pohlandt Jonas Pohlandt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: