Accordion breaks on multiple title question marks
-
WP 3.5.1
jQuery 1.9.0
WP UI 0.8.7
Chrome 27Uncaught Error: Syntax error, unrecognized expression: #tab1_and_tab2_tab3? (jquery.min.js:2)
This is a pretty interesting error – it only seems to happen when there is more than one question mark present in the accordion tab title.
WP Editor:
[wptabs type="accordion" effect="fade" mode="horizontal"] [wptabtitle] tab1 and tab2? tab3?[/wptabtitle] [wptabcontent]We will arrange that for you.[/wptabcontent]?[wptabtitle] Will you need the service of a Lawyer?[/wptabtitle] [wptabcontent]We will make that introduction.[/wptabcontent]?[/wptabs]
Output HTML:
<div id="wp-accordion-1" class="wp-accordion wpui-light wpui-styles wpui-collapsible"> <div class="accordion"><h3 class="wp-tab-title"> tab1 and tab2? tab3?</h3><div class="wp-tab-content"><div class="wp-tab-content-wrapper">We will arrange that for you.</div></div><h3 class="wp-tab-title"> Will you need the service of a Lawyer?</h3><div class="wp-tab-content"><div class="wp-tab-content-wrapper">We will make that introduction.</div></div></div> <!-- end div.wp-tab-content --> <!-- end div.wp-tab-content --> </div>
I don’t quite have enough time to troubleshoot at the moment – will check in later.
- The topic ‘Accordion breaks on multiple title question marks’ is closed to new replies.