Mailing List Archive

badly toggling subelements
Some subelements in trunk aren't toggling correctly.
When I click them, the page jumps to the top;
the subelement does toggle open/closed.
My colleague who is probably using IE
reported that some subelements are not opening at all.

I made one fix just now (revision 8508)
but it still isn't working.
I noticed that there are embedded <fieldset> elements:


<fieldset>
<legend class="name">
<a href="#" style="" id="element_9187569_showhide"
onclick="Container.toggle(9187569, this); return false;" title="Toggle 'Two
column layout'">â–¼</a>
<span title="Drag to reorder">Two column layout</span>
</legend>
<ul style="overflow: visible;" id="element_9187569" class="elements"><li
id="subelement_con9187570" class="container clearboth">
<div id="element_9187570_content" class="content">
<fieldset> <---- again before closing
<legend class="name">
<a href="#" style="" id="elem ......


Is that allowed?
Re: badly toggling subelements [ In reply to ]
On Mon, 16 Mar 2009, Scott Lanning wrote:
> Some subelements in trunk aren't toggling correctly.
> When I click them, the page jumps to the top;
> the subelement does toggle open/closed.
> My colleague who is probably using IE
> reported that some subelements are not opening at all.
>
> I made one fix just now (revision 8508)
> but it still isn't working.
> I noticed that there are embedded <fieldset> elements:
>
>
> <fieldset>
> <legend class="name">
> <a href="#" style="" id="element_9187569_showhide"
> onclick="Container.toggle(9187569, this); return false;" title="Toggle 'Two
> column layout'">â–¼</a>
> <span title="Drag to reorder">Two column layout</span>
> </legend>
> <ul style="overflow: visible;" id="element_9187569" class="elements"><li
> id="subelement_con9187570" class="container clearboth">
> <div id="element_9187570_content" class="content">
> <fieldset> <---- again before closing
> <legend class="name">
> <a href="#" style="" id="elem ......
>
>
> Is that allowed?

It turns out that <fieldset> can indeed be a child of <fieldset>.
The problem is fixed in r8509.