91f29ea7b8
Instead of recursive calls for each nested level of HTML, the next level is pushed to a stack on the heap, and returned to the main loop. This prevents stack overflow at _n_ depth (where _n_ is operating-system dependent). It's probably still possible to use all of the heap memory, but Tidy's allocators already fail gracefully in this circumstance. Please report any regressions of your own HTML! NOTE: the XML parser is not affected, and is probably still highly recursive.
31 lines
456 B
HTML
31 lines
456 B
HTML
<!--
|
|
This test case tests the definition list element and parser.
|
|
-->
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>
|
|
case-003
|
|
</title>
|
|
</head>
|
|
<body>
|
|
<dl>
|
|
<dd>
|
|
<div>
|
|
<table summary="">
|
|
<tr>
|
|
<td>
|
|
What is up?
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</dd>
|
|
<dd></dd>
|
|
</dl>
|
|
<center>
|
|
Hello
|
|
</center>
|
|
</body>
|
|
</html>
|