Commit graph

22 commits

Author SHA1 Message Date
Jim Derry 14223a95a8 Removed files not needed. 2021-08-27 08:23:05 -04:00
Jim Derry 9aadf20dd0 Bump version. 2021-08-26 17:33:51 -04:00
Jim Derry b5d28d7d30 Fixes #523.
Added test case to test flexibility.
Updated old test case 443678, which is better with this fix.

This fixes #523 and tries to be as general as possible. Right now the fix is
only applied if the prev or next tag is a body level div, but perhaps should
be applied for anything that's acting as block level element. In any case,
the specific bug is killed.
2021-08-26 15:59:33 -04:00
Jim Derry 8a45f44f36 Tests cases for previous. 2021-08-17 14:53:28 -04:00
Jim Derry 0d72ca395f Fixes #611. 2021-08-17 14:51:40 -04:00
Jim Derry 1ca8e210c8 Fixes #525.
Naked groups of LI in HTML5 mode will now have an inferred UL applied to
them consistent with HTML4 and earlier modes.

Test case added.

Note that three regressions were updated in favor of this corrected behavior.
2021-08-17 12:34:43 -04:00
Jim Derry 6001011c80 Fixes #464. Test cases added. 2021-08-17 11:38:42 -04:00
Jim Derry 132fb352b1 The XML Parser and XML Pretty Printer are now non-recursive. 2021-08-17 07:24:53 -04:00
Jim Derry 91f29ea7b8 HTML Tidy now parses HTML non-recursively.
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.
2021-08-14 20:42:43 -04:00
Jim Derry efa61528aa Fixes #946 by refactoring the recursion into a loop with a heap-based stack. 2021-07-31 08:26:16 -04:00
Jim Derry bd751a8bcd Fix allocation error; fix some static analyzer suggestions. 2021-07-30 18:23:47 -04:00
Jim Derry 0d173d61d7 HTTPS Migration
- Updated links with working https versions from http.
- Removed rotten links.
- Updated links that have since resolved to new addresses.
- Generated all new po's and pot from existing headers.
- Updated the regression tests to account for the new https:// URLS, and the
  changed reference to specification.
2021-07-21 17:21:27 -04:00
Jim Derry 1bb72d6041 Spelling fixes, thanks to @jschleus. 2021-07-21 15:50:53 -04:00
Jim Derry 009da61f8b Fixes #836. Version bump to reflect change. Test cases added. 2021-07-09 15:51:14 -04:00
Jim Derry 83eb3c0136 Added testcase for #938 2021-06-30 13:39:19 -04:00
Jim Derry ad8cae97bd Added test case for #839. 2021-06-30 11:17:41 -04:00
Jim Derry cf43bd3448 Update existing regression testing results to accommodate new behavior. This is
justified because we're simply reporting a new condition without changing output.
2021-06-30 11:08:13 -04:00
Jim Derry 4052718fb8 Added test cases for this PR. 2021-06-30 10:16:10 -04:00
Jim Derry 4153b5784c Commonize versioning.
Eliminate the redundant test case version file from the recently re-merged
regression testing suite. Regression tests are now automatically versioned
the same as the current tidy source version.
2021-06-30 09:41:19 -04:00
Jim Derry 1622342783 Bumped version for recent merge. 2021-06-30 09:31:34 -04:00
Jim Derry 65aa1bdd8c Added test cases to this PR. 2021-06-30 09:25:37 -04:00
Jim Derry 5a1b65d089 Move the testing repository back into the Tidy codebase.
Automate testing of any PR's.
Updated README's explaining new processes.
2021-05-21 10:43:35 -04:00