diff --git a/packages/page-controller/src/dom/index.ts b/packages/page-controller/src/dom/index.ts index b24c5c1..07cf724 100644 --- a/packages/page-controller/src/dom/index.ts +++ b/packages/page-controller/src/dom/index.ts @@ -88,7 +88,7 @@ function matchAttributes( for (const pattern of patterns) { if (pattern.includes('*')) { const regex = globToRegex(pattern) - for (const key in attrs) { + for (const key of Object.keys(attrs)) { if (regex.test(key) && attrs[key].trim()) { result[key] = attrs[key].trim() }