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'];
CommentFileSizeAuthor
#1 use-data-attribute-2134683-1.patch442 bytesDevin Carlson
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Devin Carlson’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Status: Active » Needs review
FileSize
442 bytes

Rereading 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 a data- attribute.

Devin Carlson’s picture

Status: Needs review » Fixed

Tested #1 and committed it to Twitter Block 7.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.