Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#8690 closed bug (notabug)

Accordion uses <script> tag as data section

Reported by: Vikas Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.accordion Version: 1.9.0
Keywords: Cc:
Blocked by: Blocking:

Description

Accordion uses <script> tag as data section. For example,

<div class="accordion">
<h3>Header</div>
<div>Data</div>
<script>
//Some javascript stuff
</script>
<h3>Header2</h3>
<div>Data2</div>
</div>

Change History (3)

comment:1 Changed 7 years ago by Scott González

Resolution: notabug
Status: newclosed

Use the header option.

comment:2 in reply to:  1 Changed 7 years ago by Vikas

Replying to scott.gonzalez:

Use the header option.

Ok, if I set header, but script is between h3 section and data section: http://jsfiddle.net/7KZPS/13/

<div class="accordion">
    <h3>Header2</h3>
    <script>
    //Some javascript stuff
    </script>
    <div>Data2</div>
</div>

Ok, nevermind. Not a big problem... BTW, in the 1.8.24 I didn't had this issue.

Last edited 7 years ago by Vikas (previous) (diff)

comment:3 Changed 7 years ago by Scott González

So don't do that, it was never intended to be supported.

Note: See TracTickets for help on using tickets.