最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Aria-live content read twice by Mac - Chrome - VoiceOver - Stack Overflow

programmeradmin2浏览0评论

Aria-live content read twice by Mac - Chrome - VoiceOver, when the content is in the iframe. Below links are the example by "developer mozilla". I want to know whether this is an issue or not, If so, is there any solution to fix this?

Links

  1. Aria-live in iframe In this link aria-live content reads twice.

  2. Aria-live not in iframe In this link aria-live reads content only once.

Aria-live content read twice by Mac - Chrome - VoiceOver, when the content is in the iframe. Below links are the example by "developer mozilla". I want to know whether this is an issue or not, If so, is there any solution to fix this?

Links

  1. Aria-live in iframe In this link aria-live content reads twice.

  2. Aria-live not in iframe In this link aria-live reads content only once.

Share Improve this question asked Apr 16, 2020 at 7:38 satheeshsatheesh 4235 silver badges17 bronze badges 1
  • I'm also experiencing this issue. I didn't realize it was just in iFrame's though. Thank you for pointing that out. I'm testing in Storybook, which loads in an iFrame, so that would make sense. To add on to this, I'm only experiencing this issue when the politeness setting is "polite". It doesn't seem to effect "assertive" announcements. Also, I'm seeing this in Safari and Firefox on my Mac as well. – Don Brody Commented Jun 2, 2020 at 19:33
Add a ment  | 

2 Answers 2

Reset to default 10 +50

It's a known issue and a bug in VoiceOver, with apparently no known solution.

Read: VoiceOver duplicates alerts in iframes

According to that page, a bug report has been sent to Apple

A Twitter User, Ryan Seddon says that the bug only appear with aria-live=polite and not assertive

Can you try by giving some role to the element where you keep aria-live?

Ex:

<div aria-live="polite" role="text"> ..... </div>
发布评论

评论列表(0)

  1. 暂无评论