I saw that in zepto.js 271-273:
```js
  $.contains = function(parent, node) {
    return parent !== node && parent.contains(node)
  }
```

means `$.contains` used DOM contains as well and dismiss the parent is the node itself.