Creates an instance of TagStrategy.
An object containing a function to validate tag names.
Generates a selector part for the given element if the tag name matches the criteria.
The DOM element for which to generate the selector part.
A SelectorPart object with the tag name and a penalty, or null if the tag name does not match.
A strategy for generating XPath selectors based on the tag name of an element.