Creates a new TagClass instance.
Optionalvalue: string | string[] | Set<string>The initial value of the class attribute.
Returns the number of class names in the class attribute.
The number of class names in the class attribute.
Adds one or more class names to the class attribute.
One or more class names to add.
Removes all class names from the class attribute.
Checks whether the class attribute contains a class name.
The class name to check.
true if the class attribute contains the class name, otherwise false.
Removes one or more class names from the class attribute.
One or more class names to remove.
Returns a CSS selector string for the class attribute.
A CSS selector string for the class attribute.
Returns a string representation of the class attribute.
A string representation of the class attribute.
Represents the
classattribute for an HTML tag.