dompdf / dompdf/dompdf

Handling of TFOOT tag is incorrect

Open
#25 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug imported Priority-Medium
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?

  1. Create an HTML document that contains a table with THEAD, TBODY, and
    TFOOT sections. The table should span two pages in the rendered PDF.
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.