Make sure "body" is always matched by domNodeIsAttachedToDocument (compareDocumentPosition doesn't consider a node contained within itself).