title: Chrome and Firefox incompatibility
body: <p>I have two frames, the expression running in first frame and calling highlightElements function in another frame. This expression works fine in Firefox:</p>
  
  <pre><code>parent.frames[0].highlightElements(lineNumbers, stringObj);
  </code></pre>
  
  <p>The highlightElements function (just for sure):</p>
  
  <pre><code>function highlightElements(lineNumbers, stringObj) {
    // run through the cycle and highlight them
    //for (var ln in lineNumbers) {
    var length = lineNumbers.length;
    for (var ln=0; ln&lt;length; ln++) {
      var elements = $('.no');
      //for (var i in elements) {
      var el_length = elements.length;
      for (var i=0; i&lt;el_length; i++) {
        if (parseInt(elements[i].innerHTML) == lineNumbers[ln]) {
          var badThing = "yes";
          for (var nextElement = elements[i].next();
               nextElement.className != '.no'; nextElement = elements[i].next()) {
            if (nextElement.innerHTML == stringObj) {
              badThing = "no";
              nextElement.effect('highlight', {}, 'slow');
              scrollIntoView(nextElement);
            }
          }
          if (badThing == "yes") alert("Didn't find the object");
        }
      }
    }
  }
  </code></pre>
  
  <p>But in Chrome it produces the error "Uncaught TypeError: Property 'highlightElement' of object[objectDOMWindow] is not a function".</p>
  
  <p>How to change the expression to make it runnable in Chrome? Thanks</p>