dompdf / dompdf/dompdf

table with display: inline breaks rendering process

Open
#444 18 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: jonasfon (March 08, 2012 20:48:28)

What steps will reproduce the problem?
$html = "<table><tr><td></td></tr><table>";

What is the expected output? What do you see instead?
A table,

A see this:
Fatal error: Call to a member function get_cellmap() on a non-object in /home/mugg/sub/t.profebox.com/script/dompdf/include/table_cell_frame_reflower.cls.php on line 31

What version of dompdf are you using? What version of PHP? On what
operating system?
0.6.0 Beta 3

Linux

PHP 5.3.2 ( I'm not sure about X.X.2 )

Please provide the HTML source code you want to convert, or any additional
information.

Original issue: http://code.google.com/p/dompdf/issues/detail?id=438

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

Start by reproducing the supplied table HTML on dompdf 0.6.0 Beta 3 and inspect include/table_cell_frame_reflower.cls.php at the reported get_cellmap() failure. Trace the table layout path for a table using display: inline; done means the conversion completes without the fatal error and renders the table output.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html, php
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.