hasAttributeInAllowlist function
Implementation
bool hasAttributeInAllowlist(String name, String attr) =>
_selectors.any((selectors) => selectors.any((selector) =>
(selector.element == name || selector.element == null) &&
selector.attrs.any((matcher) => matcher.name == attr)));