Date display theme functions hardcode class attribute on the HTML element which prevents theme preprocess functions from adding classes through drupal_attributes(). The current output results in two class attributes which is invalid HTML and it seems the second one will be ignored, see http://stackoverflow.com/questions/9512330/multiple-class-attributes-in-...
Propose not hardcoding class attribute, instead append it to attributes in the theme function. Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#8 | date-n2572213-8.patch | 3.06 KB | DamienMcKenna |
| |||
#5 | date-allow-class-attribute-for-date-displays-2572213-3.patch | 3.01 KB | frodri |
#2 | date-allow-class-attribute-for-date-displays-2572213-1-7.patch | 3.01 KB | lwalley |
Issue fork date-2572213
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
lwalley CreditAttribution: lwalley commentedComment #3
DamienMcKennaThanks for the patch, we'll try to review it soon.
BTW when you upload a patch it helps to set the status to "needs review", that triggers the testbots and lets others know that there's something review.
Comment #5
frodri CreditAttribution: frodri commentedUpdating patch to work with version 2.10.
Comment #7
lwalley CreditAttribution: lwalley commentedOpened PR with re-roll of #5 against 7.x-2.x branch.
Comment #8
DamienMcKennaIn patch format.
Comment #11
DamienMcKennaCommitted. Thank you.