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

ParseException ("Malformed tag") if <script> attribute 'type' is 'module'

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 9.11.0
    • 10.0.0-M1, 9.12.0
    • None
    • None

    Description

      XmlPullParser only skip <script> tag content only if type attribute is missing or is "text/javascript" (see here).  Apparently this choice was made to support html templates with JavaScript : see WICKET-5288. However type attribute might also be set to  'module' to support JavaScript modules and this causes a ParseException.
      In addition to adding "module" to the skip condition maybe we should reconsider to always skip <script> tag content and drop support for WICKET-5288 user case.

      Attachments

        Activity

          People

            bitstorm Andrea Del Bene
            bitstorm Andrea Del Bene
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: