Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4596

faces.ts style tags must retain their original position (and script tags as well)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.0
    • 4.0.1
    • None
    • None

    Description

      This bug came from a corner case the Tobago guys had.

      The problem is that the style tags are not retained at their proper position, but are evaled like script tags via the head appendix method.

      While script tags only can be evaluated by appending them on the head for a short period of time, this is not needed for style tags.

      I have a solution for this (see https://github.com/werpu/jsfs_js_ts/pull/35 in the comments)

      The Tobago guys thankfully have provided a test case. 

      Fix will be in 4.0.1 including the provided unit test!

       

      Note: I consider this a minor, bug, because it does not prevent the style tags to be properly evaluated by the browser, just if code needs to check for embedded style tags being in their proper location, this becomes a major issue! This very likely only affects component libraries (I have yet to have had this case in a project, hence I did not have it on the radar)

      Nevertheless it will be fixed!

       

      Attachments

        Issue Links

          Activity

            People

              werpu Werner Punz
              werpu Werner Punz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: