Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19026

The <head> is full of invalid HTML <link> and <script> elements

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      Browsers are nice, so they don't complain too much, but we actually produce invalid HTML for all the <link> and <script> elements which lead to a filesystem resource.

      For example:

      <link href="      /xwiki/bin/skin/skins/flamingo/style.min.css?cache-version=1632744440000&skin=XWiki.DefaultSkin&#38;colorTheme=xwiki%3AFlamingoThemes.Iceberg&#38;colorThemeVersion=1.1
        " rel="stylesheet" type="text/css" media="all" />
      <script src='/xwiki/bin/skin/resources/js/xwiki/xwiki.bundle.min.js?cache-version=1632744530000&defer=false&amp;language=en'></script>
      

      Notice the unescaped "&" after the cache-version parameter value.

      It probably started with XWIKI-6073.

      Attachments

        Issue Links

          Activity

            People

              MichaelHamann Michael Hamann
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: