x = (name, attrs = null, children = []) => {
  return { type: 'element', name, attributes: attrs || {}, children };
}
@param {string} name
@param {?Record<string, string>} attrs
@param {import('./types.js').XastElement[]} children
@returns {import('./types.js').XastElement}