Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3393

css_xhtml theme is broken for IE8 and does not work correctly in other browsers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.8.1
    • Fix Version/s: 2.2.1
    • Component/s: XML Validators
    • Labels:
      None
    • Environment:

      IE8

    • Flags:
      Patch

      Description

      css_xhtml theme does not work in IE8 and does not work correctly in all other browsers. The function findWWCtrlNode in template/css_xhtlm/validation.js is written incorrectly. It was using a "var in" for loop syntax, peplaced with a for loop count syntax.

      problem
      struts/css_xhtml/validation.js: function findWWCtrlNode needed to be rewritten.

      function findWWCtrlNode(enclosingDiv) {
      var elems = enclosingDiv.getElementsByTagName("div");
      for(i = 0; i < elems.length; ++i )

      { if (elems[i].className && elems[i].className.match(/(wwlbl|wwctrl)/)) return elems[i]; }

      elems = enclosingDiv.getElementsByTagName("span");
      for(i = 0; i < elems.length; ++i ) { if (elems[i].className && elems[i].className.match(/(wwlbl|wwctrl)/)) return elems[i]; }

      return enclosingDiv.getElementsByTagName("span")[0];
      }

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              since Stephen Ince
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: