Opened 6 years ago

Closed 6 years ago

#9817 closed bug (notabug)

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

Change History (2)

comment:1 Changed 6 years ago by terry151151

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

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

Regards Terry

comment:2 Changed 6 years ago by Scott González

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.