docs: function getState(element) {
    assertType(element, Node, false, 'Invalid element specified');
  
    let state = element.state || element.getAttribute(Directive.STATE);
  
    if (!state || state === '')
      return null;
    else
      return state;
  }