woocommerce-wordpress-service/app/wp-content/themes/vilva/js/build/modal-accessibility.js
// Recursively go up the DOM adding matches to the parents array.

Recursively go up the DOM adding matches to the parents array.
Recursively go up the DOM adding matches to the parents array .
function traverse( item ) {
        var parent = item.parentNode;
        if ( parent instanceof HTMLElement ) {
            if ( parent.matches( query ) ) {
                parents.push( parent );
            }
            traverse( parent );
        }
    }
function traverse ( item ) { var parent = item . parentNode ; if ( parent instanceof HTMLElement ) { if ( parent . matches ( query ) ) { parents . push ( parent ) ; } traverse ( parent ) ; } }
Recursively go up the DOM adding matches to the parents array.
Recursively go up the DOM adding matches to the parents array .