How to use the mathml-tag-names.indexOf function in mathml-tag-names

To help you get started, we’ve selected a few mathml-tag-names examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stylelint / stylelint / lib / rules / selector-type-no-unknown / index.js View on Github external
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,
					});
				});
			});
github stylelint / stylelint / lib / utils / isCustomElement.js View on Github external
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;
};

mathml-tag-names

List of known MathML tag names

MIT
Latest version published 3 years ago

Package Health Score

65 / 100
Full package analysis

Popular mathml-tag-names functions