Handling of TFOOT tag is incorrect
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 11.2k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Original author: eclecticgeek (May 29, 2009 17:59:28)
What steps will reproduce the problem?
- Create an HTML document that contains a table with THEAD, TBODY, and
TFOOT sections. The table should span two pages in the rendered PDF. - Render the document with DOMPDF.
What is the expected output?
The PDF should contain a table that spans two pages. The THEAD and TFOOT
should bookend the table on each page on which it appears.
What do you see instead?
The THEAD renders as expected, but the TFOOT is rendered as if it were a
normal table row.
Additional information:
The TFOOT grouping should appear before the TBODY grouping in the HTML code
as per the W3C specification:
http://www.w3.org/TR/html4/struct/tables.html#h-11.2.3
We may wish to consider allowing the TFOOT grouping to be placed at the end
of the table code since this is a likely scenario.
Original issue: http://code.google.com/p/dompdf/issues/detail?id=18
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides no file or test entry point; start by reproducing the described multi-page HTML table with THEAD, TBODY, and TFOOT in DOMPDF. Compare the generated PDF with the expected table structure, and consider both the specification order and TFOOT placed at the end. Done means TFOOT bookends the table on each page rather than rendering as a normal row.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, php
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100