function isFormMethodDialog(el) {
  if (!el || !el.hasAttribute('method')) {
    return false;
  }
  return el.getAttribute('method').toLowerCase() === 'dialog';
}
@param {HTMLFormElement} el to check
@return {boolean} whether this form has method="dialog"