role=dialog 和 role=alertdialog 有什么区别?

What is the difference between role=dialog and role=alertdialog?

根据 WAI-ARIA specification 两个角色应具有:

我看到的唯一区别是 alertdialog 应该设置 aria-describedby

这引出了一个问题。 role=dialogrole=alertdialog 之间的实际区别是什么?我们什么时候使用一个或另一个?

here所述,alertdialog 是对话框的子类型。

让他们与众不同的是他们的角色。顾名思义,当上下文需要用户立即注意时(即出现警报、警告或错误时),应使用警报对话框。

编辑:更正了解释,感谢@cjl750 评论。