vikrambalye / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

Links to non-existing anchors throw a notice #246

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add the html tag <a href="#bla">bla2</a>
2. do *not* add <a name="bla" />
3. Run the render and/or output method

What is the expected output? What do you see instead?
I expect that no notices will be thrown but I receive the following:

PHP Notice:  Undefined index: bla in 
/home/mvriel/Projects/DocBlox/lib/dompdf/lib/class.pdf.php on line 1220
PHP Stack trace:
PHP   1. {main}() /home/mvriel/Projects/DocBlox/testpdf.php:0
PHP   2. DOMPDF->output() /home/mvriel/Projects/DocBlox/testpdf.php:8
PHP   3. CPDF_Adapter->output() 
/home/mvriel/Projects/DocBlox/lib/dompdf/include/dompdf.cls.php:777
PHP   4. Cpdf->output() 
/home/mvriel/Projects/DocBlox/lib/dompdf/include/cpdf_adapter.cls.php:907
PHP   5. Cpdf->o_action() 
/home/mvriel/Projects/DocBlox/lib/dompdf/lib/class.pdf.php:1915

What version of the product are you using? On what operating system?
Currently using 0.6.0b2 on Linux (Ubuntu 10.04)

Original issue reported on code.google.com by draconi...@gmail.com on 12 Mar 2011 at 3:10

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r373.

Original comment by fabien.menager on 14 Mar 2011 at 9:51

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:15