"aria-label" 内容的 HTML 属性在注入 Outlook 撰写表单时被删除

"aria-label" attribute of the HTML content got removed when injected into the Outlook compose form

我们正在构建一个 Outlook 插件,它将一些 HTML 注入到电子邮件或日历约会撰写表单中。 我们正在尝试将 "aria-label" 添加到某些图像中,以便屏幕 reader 可以适当地读取它们。但是,我们看到这些标签在注入到撰写表单后就消失了。 奇怪这是预期的吗? Outlook 会删除注入到撰写表单中的任何 aria-labels 吗?

HTML 电子邮件与 HTML5 相同(或者甚至非常接近)。我个人认为 MailChimp 的 HTML Email reference puts it best:

This reference assumes you’re a front-end web designer with an intermediate working knowledge of HTML and CSS. You’re comfortable coding in and using HTML tables for structure, and working in coding standards that were state-of-the-art in 1999. Feel free to crank up a little TLC or Goo Goo Dolls to get into the spirit of things.

鉴于 HTML 电子邮件客户端几乎不支持 style 属性,可以安全地假设它们不支持 HTML5 的 aria-lebel