According to Section 508 1194.22i, Frames shall be titled with text that facilitates frame identification and navigation.
So in order to pass the accessibility test, we would want to add a TITLE attribute to the iframe. This is not really a bug of the module especially the code given by Google also doesn't contain the title attribute as well, so I am placing this under Feature Request, but feel free to change.
Reference: https://section508.gov/content/quick-reference-guide#1194.22i
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | google_tag-iframe-title-attr-2902160-16.patch | 662 bytes | fabianfiorotto |
| #15 | google_tag-iframe-title-attr-2902160-1-D8.patch | 702 bytes | mr.valters |
| #13 | google_tag-accessibility-2902160-13-D8.patch | 612 bytes | yannisc |
| #6 | google_tag-accessibility-2902160-6-D8.patch | 751 bytes | huiran |
Comments
Comment #2
huiran commentedPatch that adds TITLE attribute to the iFrame.
Comment #3
huiran commentedComment #4
huiran commentedAlso adding aria-hidden="true" per thread https://www.drupal.org/node/2878894 for accessibility.
Comment #5
huiran commentedComment #6
huiran commentedUpdated patch to pass check on frame content.
Comment #7
lreynaga commented+1 for #6
I am able to see the title attribute in the iframe. We follow Section 508 within our accessibility standards, so this is definitely something worth having in the module.
Comment #8
lreynaga commentedComment #9
klonos+1 yes please.
Comment #11
solotandem commentedThanks for reporting this.
Comment #13
yannisc commentedPatch #6 adds content inside the iframe that fails HTML validation.
I attach a patch that removes this content :)
Comment #14
solotandem commented@yannisc Better late than never, I committed your patch in context of #2946496: <noscript> fails w3c validation. Thanks.
Comment #15
mr.valtersComment #16
fabianfiorotto commentedRerolled for version 1.6