File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ function applyRestrictions(allowedSelectors) {
5959
6060 // get all ancestor elements and remove data-aue-model and data-aue-filter attributes
6161 const ancestorElements = document . querySelector ( 'main' ) ?. querySelectorAll ( '[data-aue-verified="ancestor"]' ) ;
62+ console . log ( 'Ancestor Elements:' , ancestorElements ) ;
6263 ancestorElements . forEach ( element => {
6364 element . removeAttribute ( 'data-aue-model' ) ;
6465 element . removeAttribute ( 'data-aue-filter' ) ;
@@ -70,7 +71,8 @@ function applyRestrictions(allowedSelectors) {
7071 } ) ;
7172
7273 // remove instrumention from the rest of the elements
73- const unverifiedElements = document . querySelector ( 'main' ) ?. querySelectorAll ( 'not([data-aue-verified="true"])' ) ;
74+ const unverifiedElements = document . querySelector ( 'main' ) ?. querySelectorAll ( '*[data-aue-type]:not([data-aue-verified="true"])' ) ;
75+ console . log ( 'Unverified Elements:' , unverifiedElements ) ;
7476 unverifiedElements . forEach ( element => {
7577 // remove all data-aue attributes from the element
7678 element . removeAttribute ( 'data-aue-resource' ) ;
You can’t perform that action at this time.
0 commit comments