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
W3 validator (https://validator.w3.org/) return some errors like:
- Error: Attribute st_url not allowed on element span at this point.
- Error: Attribute st_title not allowed on element span at this point.
- Error: Attribute displaytext not allowed on element span at this point.
Steps to reproduce
- Enable sharethis module
- In the configuration page select the "Custom Button via CSS" button style"
- Select services and configure context
- Once share this is displayed in a page run https://validator.w3.org/
Proposed resolution
Replace non standard str-* attributes with data-* attributes
Comment | File | Size | Author |
---|---|---|---|
#2 | data-attributes-3169939-1.patch | 944 bytes | tper |
Comments
Comment #2
tper CreditAttribution: tper commented