Tapestry 5
  1. Tapestry 5
  2. TAP5-1366

Tapestry must honor the position of added tags in the <head> relative to the <meta> tags, for IE compatibility

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.3, 5.2
    • Fix Version/s: 5.3
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      This problem was discussed with Thiago on mailing list, reference to it:
      http://tapestry.1045711.n5.nabble.com/X-UA-Compatible-amp-IE-9-td4406801.html

      In short, the following was agreed on:
      "Wouldn't Tapestry reordering <head> elements come in the <title>, <meta>,
      everything else order be sufficient?"

      Old description:

      As Microsoft documentation states (http://msdn.microsoft.com/en-us/library/cc817574.aspx) the META tags that direct IE8 must be positioned as follows: "The X-UA-compatible header is not case sensitive; however, it must appear in the Web page's header (the HEAD section) before all other elements, except for the TITLE element and other META elements.".

      The most flexible solution would be to honor the order of META and other tags that author has put directly to the template: the place for T5 tags could be indicated with special tag:

      For an example
      <html>
      <head>
      <title>My Web Page</title>
      <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
      <t:headcontent />
      <link href="dirlang.html" rel="next"/>
      </head>
      .
      .

      If author decides to omit the t:headcontent tag then T5 would not attach any meta or link tags.

      Other solution as Howard indicated in the mailing list would be to just add the T5 specific stuff to the end of the head section.

        Issue Links

          Activity

          Howard M. Lewis Ship made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 5.3 [ 12316024 ]
          Resolution Fixed [ 1 ]
          Howard M. Lewis Ship made changes -
          Affects Version/s 5.3 [ 12316024 ]
          Affects Version/s 5.2 [ 12313900 ]
          Affects Version/s 5.1.0.0 [ 12313428 ]
          Affects Version/s 5.1.0.1 [ 12313660 ]
          Affects Version/s 5.1.0.2 [ 12313706 ]
          Affects Version/s 5.1.0.3 [ 12313782 ]
          Affects Version/s 5.1.0.4 [ 12313854 ]
          Affects Version/s 5.1.0.5 [ 12313913 ]
          Affects Version/s 5.2.0 [ 12314122 ]
          Affects Version/s 5.2.1 [ 12315230 ]
          Affects Version/s 5.2.2 [ 12315376 ]
          Affects Version/s 5.2.3 [ 12315474 ]
          Affects Version/s 5.2.4 [ 12315557 ]
          Ville Virtanen made changes -
          Description As Microsoft documentation states (http://msdn.microsoft.com/en-us/library/cc817574.aspx) the META tags that direct IE8 must be positioned as follows: "The X-UA-compatible header is not case sensitive; however, it must appear in the Web page's header (the HEAD section) before all other elements, except for the TITLE element and other META elements.".

          The most flexible solution would be to honor the order of META and other tags that author has put directly to the template: the place for T5 tags could be indicated with special tag:

          For an example
          <html>
            <head>
               <title>My Web Page</title>
                <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
                <t:headcontent />
                <link href="dirlang.html" rel="next"/>
            </head>
            .
            .

          If author decides to omit the t:headcontent tag then T5 would not attach any meta or link tags.

          Other solution as Howard indicated in the mailing list would be to just add the T5 specific stuff to the end of the head section.
           
          This problem was discussed with Thiago on mailing list, reference to it:
          http://tapestry.1045711.n5.nabble.com/X-UA-Compatible-amp-IE-9-td4406801.html

          In short, the following was agreed on:
          "Wouldn't Tapestry reordering <head> elements come in the <title>, <meta>,
          everything else order be sufficient?"

          Old description:

          As Microsoft documentation states (http://msdn.microsoft.com/en-us/library/cc817574.aspx) the META tags that direct IE8 must be positioned as follows: "The X-UA-compatible header is not case sensitive; however, it must appear in the Web page's header (the HEAD section) before all other elements, except for the TITLE element and other META elements.".

          The most flexible solution would be to honor the order of META and other tags that author has put directly to the template: the place for T5 tags could be indicated with special tag:

          For an example
          <html>
            <head>
               <title>My Web Page</title>
                <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
                <t:headcontent />
                <link href="dirlang.html" rel="next"/>
            </head>
            .
            .

          If author decides to omit the t:headcontent tag then T5 would not attach any meta or link tags.

          Other solution as Howard indicated in the mailing list would be to just add the T5 specific stuff to the end of the head section.
           
          Howard M. Lewis Ship made changes -
          Field Original Value New Value
          Link This issue is a clone of TAP5-648 [ TAP5-648 ]
          Ville Virtanen created issue -

            People

            • Assignee:
              Howard M. Lewis Ship
              Reporter:
              Ville Virtanen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development