export default class ElementUtilities { public static getParentElementAttribute ( elt , attr ) { let node = elt . parentElement ; while ( node != null && ! node . hasAttribute ( attr ) ) { node = node . parentElement ; } if ( node == null ) { return null ; } return node . getAttribute ( attr ) ; } }