get_elements_by_class_name method
get_elements_by_class_name
This method returns an array-like object of all child elements which have all the given class name(s).
When called on the document object, the complete document is searched, including the root node. You may also call this method on any element; it will return only elements which are descendants of the specified root element with the given class name(s).
Returns
A live HTMLCollection
of found elements.
def get_elements_by_class_name(self, class_names):
...
Parameter | Type | Description |
---|---|---|
class_names | str | The string that contains an unordered set of unique space-separated tokens representing classes (class names) |
Remarks
Refer to official spec.
See Also
- module
aspose.html
- class
HTMLCollection
- class
HTMLDocument