Get Child Elements by Tag or Class Name in Lightning Web Components

The Element.getElementsByTagName() and Element.getElementsByClassName() APIs are now supported in the LightningElement base class for Lightning web components. A parent element can use getElementsByTagName() to get a list of its child elements with a specified tag. A parent element can use getElementsByClassName() to get a list of its child elements with a specified class.

Where: This change applies to Lightning web components in Lightning Experience and all versions of the Salesforce app.