Let's implement our own Element.getElementsByClassName() that is similar but slightly different. getElementsByClassName() is a method on HTML Documents and Elements that returns an HTML collection of descendant elements within the Document/Element with the specified class name(s).