Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Add thead/tbody/tfoot tags to the table element

#78

Mattias Holmlund to nitrogenweb
show details Jun 14 (2 days ago)
Attached is a patch that adds thead, tbody and tfoot tags to the table element. It adds a header and a footer element to tables and wraps the rows in a tbody according to HTML 4.01 and onwards. This allows me to use jQuery Tablesorter (http://tablesorter.com) to sort my tables.

This is my first patch to nitrogen, so I would appreciate feedback on the patch.

table { class="tablesorter", header=[

#tablerow { cells=[

#tableheader { text="Name" },
#tableheader { text="Location" }

]} ], rows=[ #tablerow { cells=[

#tablecell { text="Rusty" },
#tablecell { text="USA" }

]}, #tablerow { cells=[

#tablecell { text="Jon" },
#tablecell { text="Iceland" }

]}, #tablerow { cells=[

#tablecell { text="Martin" },
#tablecell { text="Germany" }

]} ]}.

Reported by Rusty Klophaus · June 16th, 2010 @ 08:40 AM

State: resolved
Milestone: 2.0.2
Assigned to: nobody

Activity

  1. Rusty Klophaus
    Rusty Klophaus
    • State changed from new to resolved
    • Milestone order changed from 0 to 0

    This has now been merged into the main branch.

    June 29th, 2010 @ 07:44 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.