Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (optionsMatches(options, 'ignoreNamespaces', tagNode.namespace)) {
return;
}
if (optionsMatches(options, 'ignoreTypes', tagNode.value)) {
return;
}
const tagName = tagNode.value;
const tagNameLowerCase = tagName.toLowerCase();
if (
htmlTags.indexOf(tagNameLowerCase) !== -1 ||
svgTags.indexOf(tagNameLowerCase) !== -1 ||
keywordSets.nonStandardHtmlTags.has(tagNameLowerCase) ||
mathMLTags.indexOf(tagNameLowerCase) !== -1
) {
return;
}
report({
message: messages.rejected(tagName),
node: rule,
index: tagNode.sourceIndex,
ruleName,
result,
});
});
});
return false;
}
if (svgTags.indexOf(selectorLowerCase) !== -1) {
return false;
}
if (htmlTags.indexOf(selectorLowerCase) !== -1) {
return false;
}
if (keywordSets.nonStandardHtmlTags.has(selectorLowerCase)) {
return false;
}
if (mathMLTags.indexOf(selectorLowerCase) !== -1) {
return false;
}
return true;
};