Fix a problem with using node.offsetParent.  Use dom.isDescendant instead.