FrediBach/jQuery-jKit — pull request #2 by glenveegee (2013-01-22 10:03:03+00:00)
Title: Agnostic markup for tab title and content

Currently tabs rely on

and

for tab and content respectively. Since

is a semantic element it probably shouldn't be used to mark up the tab.

is fine for content.

It would be better to make calculation of tab and tab content agnostic of HTML elements used so that only two siblings (any elements) are necessary.

I used :first-child and :last-child selectors so that now any two consecutive elements become tab and tab content. This allows for richer markup of actual tabs.