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.
if the fieldset contains an EM - all between <em></em>
is not displayed.
<fieldset class=" collapsible collapsed"><legend>Modules in <em>modules</em></legend>
Comment | File | Size | Author |
---|---|---|---|
#5 | fieldset_html_in_title.patch | 626 bytes | edmund.kwok |
#1 | Fieldset title display bug #140253.png | 10.74 KB | edmund.kwok |
Comments
Comment #1
edmund.kwok CreditAttribution: edmund.kwok commentedManaged to replicate this bug in 5.1 and with a contributed theme (glossyblue), tested on Firefox 2, Mac. When the fieldset is expanded, the title is displayed as usual, but when collapsed, text enclosed in tags (e.g. em, strong) are hidden. Changed title to reflect the issue better. See the attached screenshot for an example.
I traced it to a css declaration in the system.css file around line 309:
Removing that seems to fix the problem and I don't see other repercussions. But I am no expert in css and not sure if it serves another purpose. Comments from css experts?
Comment #2
Steven CreditAttribution: Steven commentedRemoving that line will cause fieldsets to snap shut after the DOM completes loading. This wouldn't be noticable if you're only testing locally. Better patch needed.
Comment #3
ricabrantes CreditAttribution: ricabrantes commentedAny news???
Comment #4
beginner CreditAttribution: beginner commentedThe bug is still present.
It was also reported here:
http://drupal.org/node/251292
I had to change the form definition from:
to
Comment #5
edmund.kwok CreditAttribution: edmund.kwok commentedAttached patch seems to fix this issue in Safari 3.1 (Mac), Firefox 2.0.0.8 (Mac) and IE6 (Mac). Need more testing to verify though; not sure if there are any side effects.
Comment #6
Dublin Drupaller CreditAttribution: Dublin Drupaller commentedthanks for the patch edkwh...I'll test it later. Looks good.
Dub
Comment #7
Dublin Drupaller CreditAttribution: Dublin Drupaller commentedoops. wrong module. I don't have permissions to commit to the system.module. changing assigned to status
Comment #9
hass CreditAttribution: hass commentedAs i remember from a Garland bug regarding this issue the above patch have side effects... try to search for a "garland legend" issue...
Comment #10
cburschkaAs a warning, * affects tags that would not normally be displayed - not that the legend is likely to contain a script or a style tag, of course.
Comment #12
lilou CreditAttribution: lilou commentedSee: #335122: Test clean HEAD after every commit and http://pastebin.ca/1258476
Comment #14
casey CreditAttribution: casey commentedFixed in D7: #676800: Fieldsets break design badly
Comment #15
MA-Hugh CreditAttribution: MA-Hugh commentedThe bug definitely arises due the wildcard, either the core needs to filter out tags for collapsible titles or add something to allow certain formatting inside them.
I have tried several global fixes on my system, has anyone fully got this fixed?