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

[StyleAndScriptIdentifier] Better matching of CDATA-comments

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.5, 6.0.0-beta1
    • 1.5.6, 6.0.0-beta1
    • wicket
    • None

    Description

      The current behavior of the postProcess-method causes double CDATA-comments in the markup, if a single whitespace appears, e.g: /* <![CDATA[ */
      Instead of searching for CDATA-comments in the markup-string, a regex should match all possible occurrences.

      Someting like:

      ...
      String text = body.toString().trim();
      if (!text.matches(".<!\\[CDATA
      [.
      "))
      ...

      Attachments

        1. StyleAndScriptIdentifier.patch
          0.8 kB
          Mathias Binder

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mathias.binder Mathias Binder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: