Artifact Content
Artifact ef08a0e3535006dd3895a080c8a71ef978187e8090b33ec69ff0f10c0327a622:
- File public/riot-3.13.2/lib/browser/common/util/dom/get-attribute.js — part of check-in [12a9bb700d] at 2021-08-11 18:56:04 on branch trunk — Import from git Added a changelog (user: dev size: 341)
/** * Get the value of any DOM attribute on a node * @param { Object } dom - DOM node we want to parse * @param { String } name - name of the attribute we want to get * @returns { String | undefined } name of the node attribute whether it exists */ export default function getAttribute(dom, name) { return dom.getAttribute(name) }