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.
34 lines
981 B
HTML
Executable file
34 lines
981 B
HTML
Executable file
<!--
|
|
This test case tests the datalist element and the datalist parser.
|
|
Oddly, there's not an existing test case that has the datalist element.
|
|
-->
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>This is a title</title>
|
|
</head>
|
|
|
|
<body>
|
|
<label for="ice-cream-choice">Choose a flavor:</label>
|
|
<input list="ice-cream-flavors" id="ice-cream-choice" name="ice-cream-choice" />
|
|
|
|
<datalist id="ice-cream-flavors">
|
|
<option value="Chocolate">
|
|
<option value="Coconut">
|
|
<option value="Mint">
|
|
<option value="Strawberry">
|
|
<option value="Vanilla">
|
|
</datalist>
|
|
|
|
<label for="myBrowser">Choose a browser from this list:</label>
|
|
<input list="browsers" id="myBrowser" name="myBrowser" />
|
|
<datalist id="browsers">
|
|
<option value="Chrome">
|
|
<option value="Firefox">
|
|
<option value="Internet Explorer">
|
|
<option value="Opera">
|
|
<option value="Safari">
|
|
<option value="Microsoft Edge">
|
|
</body>
|
|
</html>
|