function isElement(node) {
  // NB: this isn't accurate, but suffices for use in `hasAccessibleChildren`.
  return node.type !== 'text';
}
@param {import('parse5-htmlparser2-tree-adapter').Node} node
@return {node is import("parse5-htmlparser2-tree-adapter").Element}