Reintroducing dom.contains since IE10's element.contains is buggy.
Updated docs.