Fixed a performance issue with the "is" method in DOMUtils. Patch contributed by Paul Bosselaar.