Uploaded image for project: 'Shale'
  1. Shale
  2. SHALE-247

s:validatorScript produces invalid html markup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.2
    • 1.0.3
    • Core
    • None
    • myfaces 1.1.5
    • Patch

    Description

      The javascript that the <s:validatorScript> component generates does not validate against XHTML 1.0 Transitional using the validator on http://validator.w3.org/.

      The validation error happens because the component creates an extraneous html comment start/stop before and after the javascript it generates.

      Output:
      <script type="text/javascript" language="Javascript1.1">
      <!--
      <!--
      var bCancel = false;
      ...
      -->
      //-->
      Fix:

      <script type="text/javascript" language="Javascript1.1"><!--

      var bCancel = false;
      ...
      ...
      //-->

      Attachments

        1. site.patch
          0.9 kB
          reind

        Activity

          People

            gvanmatre@comcast.net Gary VanMatre
            reind reind
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: