Overload for DOMTokenList.prototype.contains