I suspect the next 4 lines are actually re-implementing domUtils.containsRange