Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
There is a W3c validation error with atributte aria-polite because it doesn't exist for aria properties.
Proposed resolution
You can fix it change aria-polite by aria-live in twitter_block.module. Here I paste the new code:
$block['content']['#options']['attributes']['aria-live'] = $data['polite'];
Comment | File | Size | Author |
---|---|---|---|
#1 | use-data-attribute-2134683-1.patch | 442 bytes | Devin Carlson |
Comments
Comment #1
Devin Carlson CreditAttribution: Devin Carlson commentedRereading the Embedded Timelines documentation, it looks like Twitter looks for a "polite" data attribute and uses it to generate the proper HTML.
The attached patch changes the
aria-polite
attribute into adata-
attribute.Comment #2
Devin Carlson CreditAttribution: Devin Carlson commentedTested #1 and committed it to Twitter Block 7.x-2.x.