3.12 Getting and Setting data- Attributes. Described function getElementsByClass has three arguments. Class name (first argument), DOM node (by default its a document) and tag name (for selecting only elements with specific class). Last two arguments are optional. Links to other parts.