lib/HTMLParser.js
function equal(newelt, oldelt, oldattrs) {
    if (newelt.localName !== oldelt.localName) return false;
    if (newelt._numattrs !== oldattrs.length) return false;
    for(var i = 0, n = oldattrs.length; i < n; i++) {
      var oldname = oldattrs[i][0];
      var oldval = oldattrs[i][1];
      if (!newelt.hasAttribute(oldname)) return false;
      if (newelt.getAttribute(oldname) !== oldval) return false;
    }
    return true;
  }
function equal(newelt, oldelt, oldattrs) {
    if (newelt.localName !== oldelt.localName) return false;
    if (newelt._numattrs !== oldattrs.length) return false;
    for(var i = 0, n = oldattrs.length; i < n; i++) {
      var oldname = oldattrs[i][0];
      var oldval = oldattrs[i][1];
      if (!newelt.hasAttribute(oldname)) return false;
      if (newelt.getAttribute(oldname) !== oldval) return false;
    }
    return true;
  }
function equal ( newelt , oldelt , oldattrs ) { if ( newelt . localName !== oldelt . localName ) return false ; if ( newelt . _numattrs !== oldattrs . length ) return false ; for ( var i = 0 , n = oldattrs . length ; i < n ; i ++ ) { var oldname = oldattrs [ i ] [ 0 ] ; var oldval = oldattrs [ i ] [ 1 ] ; if ( ! newelt . hasAttribute ( oldname ) ) return false ; if ( newelt . getAttribute ( oldname ) !== oldval ) return false ; } return true ; }
This function defines equality of two elements for the purposes of the AFE list.  Note that it compares the new elements attributes to the saved array of attributes associated with the old element because a script could have changed the old element's set of attributes
This function defines equality of two elements for the purposes of the AFE list . Note that it compares the new elements attributes to the saved array of attributes associated with the old element because a script could have changed the old element s set of attributes