Skip to content

Commit db33856

Browse files
committed
selector fix
1 parent 61d4139 commit db33856

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/governance.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)