Skip to main content

Search and Top Navigation

#9817 closed bug (notabug)

Opened February 13, 2014 03:36AM UTC

Closed February 15, 2014 02:31AM UTC

Accordian modifying embeded script tag gets modified ti an accordian header

Reported by: terry151151 Owned by:
Priority: minor Milestone: none
Component: ui.accordion Version: 1.10.4
Keywords: Cc:
Blocked by: Blocking:
Description

If I have the following construct:

<div id="Accordion">
   <h3>Heading</h3>
   <div>
   </div
<script type="text/javascript">
</script>
</div>

When I do $('#Accordion').accordion(); I end up with the script tag modified also.

The result being:

<div id="Accordion" class="ui-accordion ui-widget ui-helper-reset" data-uitype="accordian" role="tablist">
   <h3 id="ui-accordion-1-header-0" class="ui-accordion-header ui-helper-reset ui-state-default ui-accordion-header-active ui-state-active ui-corner-top ui-accordion-icons" role="tab" aria-controls="ui-accordion-1-panel-0" aria-selected="true" aria-expanded="true" tabindex="0">Heading</h3>
   <div id="ui-accordion-1-panel-0" class="ui-widget-header RoundBox ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active" style="display: block; height: 218px;" aria-labelledby="ui-accordion-1-header-0" role="tabpanel" aria-hidden="false">
   </div


<script id="ui-accordion-1-header-1" class="ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-accordion-icons" type="text/javascript" role="tab" aria-controls="ui-accordion-1-panel-1" aria-selected="false" aria-expanded="false" tabindex="-1">
</script>

</div>

Regards

Terry

Attachments (0)
Change History (2)

Changed February 13, 2014 10:17AM UTC by terry151151 comment:1

It works OK if I explicitly declare "h3" to be the header. IE:

$('#Accordion').accordion(
{
    header: "h3"
} );

Regards

Terry

Changed February 15, 2014 02:31AM UTC by scottgonzalez comment:2

resolution: → notabug
status: newclosed