Wicket
  1. Wicket
  2. WICKET-4894

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.4
    • Fix Version/s: 6.4.0, 1.5.10
    • Component/s: wicket
    • Labels:
      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.

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Jonas Pohlandt
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development