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.
Tablesort outputs invalid XHTML by adding a 'field' attribute to <th>s.
Comment | File | Size | Author |
---|---|---|---|
#3 | th_attribute.patch | 390 bytes | Anonymous (not verified) |
#1 | th_field_attribute.patch | 369 bytes | Anonymous (not verified) |
Comments
Comment #1
(not verified) CreditAttribution: commentedPatch to fix the issue in includes/common.inc...
Comment #2
Dries CreditAttribution: Dries commentedCommited to the DRUPAL-4-3 branch and ported to HEAD. Thanks.
Comment #3
(not verified) CreditAttribution: commentedSorry, patch didn't fix whole problem (Tablesort is also outputting a 'sort' attribute to <th>s). Here's a patch which actually removes both the 'field' and 'sort' attribute and thus produces valid XHTML. The patch is for tablesort.inc rather than common.inc as this seemed a far more sensible place to make the fix.
Comment #4
Dries CreditAttribution: Dries commentedAgreed. Undid the previous changes and commited your patch to the DRUPAL-4-3 branch. Changes ported to HEAD as well. Thanks.
Comment #5
(not verified) CreditAttribution: commented