Adsense Ad in Single Post Content [aria-*] attributes do not match their roles

Posted in: Newspaper
Post count: 124

Hi,

In Single Post Content,

When pasting the Adsense code in the Ads section, web.dev returns error:
[aria-*] attributes do not match their roles
Advertisement
< div id=”aswift_1_host” style=”border: none; height: 0px; width: 412px; margin: 0px; padding: 0px;” tabindex=”0″ aria-label=”Advertisement” >

When pasting the same Adsense code in a separate Ad Box block – it works no problem.

– So there seems to be an error with the Single Post Content block.

Would you know how to fix this?

Screenshot 1, Screenshot 2

Thank you.

  • This topic was modified 3 years by Alex.
Post count: 21065

Hello @Alex!

I will add this issue to our investigation list as well!

Thank you!

Post count: 27

same problem here!

Post count: 72

Hi
any update on this issue. i have same issue
PageSpeed Insights accessibility issue as below:

[aria-*] attributes do not match their roles
Each ARIA role supports a specific subset of aria-* attributes. Mismatching these invalidates the aria-* attributes. Learn how to match ARIA attributes to their roles.

url: https://www.learningall.com/jobs-in-punjab-emergency-service-rescue-1122/

Post count: 21065

Hello!

The fixes will be added in the next update.

Thank you!

Post count: 124

Hi,

In Version: 12.6 this is still does not seem to be fixed.

Thanks.

Post count: 21065

Hello @alex!

That aria label is not coming from our theme, that’s why we do not have what to modify.

Thank you for understanding!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.