#6206 closed bug (notabug)
Adding id attribute to an li element in a Tab tab-section breaks the widget
Reported by: | scrozier | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.tabs | Version: | 1.8.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Adding an id attribute somehow breaks the widget. If, as in the example below, the id attribute is added to both li items, it causes both related divs to be shown at the same time.
Example:
<div class='tab-section'>
<ul> <li><a href='#credit-card' id='credit-card'>Pay by credit card</a></li> <li><a href='#check' id='check'>Pay by (online) check</a></li>
</ul> <div id="credit-card" style='padding:1.0em'>
[snip]
</div> <div id="check" style='padding:1.0em'>
[snip]
</div> </div>
Change History (3)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Duplicate ids are invalid HTML.
Note: See
TracTickets for help on using
tickets.
Sorry, I meant adding the id attribute to the <a> element inside the <li> element.
However, it turns out that adding an id attribute to the <li> attribute also breaks the widget.