Use YAHOO.util.Dom.getAncestorByTagName() where appropriate.
Use === where appropriate.