docs: function hasAttribute(element, name) {
    assertType(element, Node, false, 'Invalid element specified');
    let value = element.getAttribute(name);
    if (value === '') return true;
    return !noval(value);
  }