File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed
Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -585,33 +585,13 @@ Rule.prototype.after = function after(result, options) {
585585 // only add the node property for the check.after so we can
586586 // look at which iframe a check result came from, but we don't
587587 // want it for the final results object
588- if ( check . id === 'menu-expand' || check . id === 'menu-popup' ) {
589- if ( item ?. data ?. metaData ) {
590- delete item . node ;
591- item . result = true ;
592- }
593- } else {
594- delete item . node ;
595- }
588+ delete item . node ;
596589 if ( afterResults . indexOf ( item ) === - 1 ) {
597590 item . filtered = true ;
598591 }
599592 } ) ;
600593 } ) ;
601594
602- // Trying for sub-menu
603- if ( result . id === 'menu-expand' || result . id === 'menu-popup' ) {
604- const data = result . nodes . filter ( r => ! r . all [ 0 ] . result ) ;
605- data . forEach ( r => {
606- const node = r . all [ 0 ] . data ;
607- r . node = new axe . utils . DqElement ( node ) ;
608- } ) ;
609-
610- result . nodes . forEach ( r => {
611- delete r . all [ 0 ] . data ;
612- } ) ;
613- }
614-
615595 result . nodes = sanitizeNodes ( result ) ;
616596 return result ;
617597} ;
You can’t perform that action at this time.
0 commit comments