Perhaps we could use a selector  that avoids having to filter this on the iteration, something like:

selector = '[data-manifest-u-r-l="' + manifestURL + '"]:not([data-persistent])';

Didn't try but the expression above, but if a selector like that works for us will save some operations.