Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
javascript
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2009 at 18:42 UTC
Updated:
9 Sep 2009 at 15:08 UTC
Collapsible fieldsets stick all collapsible elements within a fieldset inside a div for easier collapsing/uncollapsing. This is fine as it goes, but as it only grabs HTML element children of the fieldset, it ignores text nodes that are within the fieldset. This can lead to crazy reordering of content if text nodes exist inside the fieldset, and furthermore, the text nodes don't collapse as the rest of the fieldset collapses, and they are just left there looking awkward on the page. This bug was found using the QUnit testing framework for JavaScript. Want it in core? Help out at the issue. :)
Comments
Comment #1
cwgordon7 commentedHere is the QUnit test file that exposed this bug.
Comment #2
catchThis is an existing bug as far as I know, but not sure where the issue is.
Comment #3
cwgordon7 commentedWhoops, sorry. Duplicate of #152431: collapsible fieldset problems with #prefix, #suffix, markup rendering I guess.