Jeckky / dompdf

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

Ordered list value property ignored #471

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Here is a source example:

$html = <<<HTML
<!DOCTYPE html>
<html>
<body>
<ol>
    <li value="1">First Item</li>
    <li value="2">Second Item</li>
    <li value="5">Third Item</li>
    <li value="6">Fourth Item</li>
</ol>
</body>
</html>
HTML;

require_once APPPATH . 'third_party/dompdf/dompdf_config.inc.php';
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->set_paper('letter', 'portrait');
$dompdf->render();
$dompdf->stream('dompdf_out.pdf', array('Attachment' => false));

What is the expected output? What do you see instead?

I expect to see:

1. First Item
2. Second Item
5. Third Item
6. Fourth Item

But what I see instead:

1. First Item
2. Second Item
3. Third Item
4. Fourth Item

It ignores the value property of the ordered list when it should recognize it.

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

Windows 7, PHP 5.3.5, using the latest DOM copy pulled from SVN trunk today 
25/04/2012.

Thank you.

Original issue reported on code.google.com by a_re...@live.co.uk on 25 Apr 2012 at 10:37

GoogleCodeExporter commented 9 years ago
This attribute had been deprecated in HTML4/XHTML. However, there is no 
indication of this in the HTML5 spec.

HTML4 spec
http://www.w3.org/TR/html401/struct/lists.html#h-10.2

HTML5 spec
http://www.w3.org/TR/2012/WD-html5-author-20120329/the-li-element.html

Original comment by eclecticgeek on 25 Apr 2012 at 6:21

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

Original comment by fabien.menager on 28 Apr 2012 at 4:11

GoogleCodeExporter commented 9 years ago

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