Commit Graph

729 Commits

Author SHA1 Message Date
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 a873a190e1 Logging for ParseScript().
Improved debug output.
2021-08-26 09:10:28 -04:00
Jim Derry a604621fef Spacing fixes. No version bump. 2021-08-25 07:19:48 -04:00
Jim Derry d956d6ca1c Refactored debug output. 2021-08-23 11:02:27 -04:00
Jim Derry 1d2a183f32 Set the indent character in a more appropriate spot.
The previous location was fine when saving the output stream, but it led to
unset character when using node interrogation, which _also_ uses the pretty
printers to get text. This is a more appropriate location to set the character.

This is the first instance of our cool Swift wrapper API tester catching an
issue for us. Nice!

Proof that the automated API
2021-08-19 18:12:29 -04:00
Jim Derry 0fe913eb76 Primarily documentation of the pprint.c/h, with some file organization and
function cleanup.
2021-08-19 16:14:46 -04:00
Jim Derry bde08388dc Delete stray control character from parser.c. No idea how that was introduced. 2021-08-18 06:30:37 -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 71ff9a7a8a Documentation update. No version bump. 2021-08-15 11:17:50 -04:00
Jim Derry 28068b1273 Fixes #816.
Ensure thread safety by ensuring that tag_defs[] is thread local.
This has some overhead but is negligible on modern systems.
2021-08-15 07:29:40 -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 1213047d42 More static analyser fixes; version bump to 5.9.7. 2021-07-30 18:45:18 -04:00
Jim Derry 5f98ccd606 Static analyzer fixes. 2021-07-30 18:32:34 -04:00
Jim Derry a34b0f07b5 Remove more recursion. 2021-07-30 17:15:58 -04:00
Jim Derry 68a3d81d02 Fixes #719. Pass the string representation of the parameter name, and post process before output. Adds strrep() service to support. 2021-07-30 16:40:48 -04:00
Jim Derry 80550d6779 Updated localization information and files. No version bump. 2021-07-30 10:43:39 -04:00
Jim Derry e56716f154 Improve internal documentation.
Start general conversion to eliminate and/or reduce recursion.
2021-07-28 19:46:54 -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 cdc632214c Fixes 968. Will immediately backport to master 2021-07-13 15:54:26 -04:00
Jim Derry ad9a25b0f1 Fixes #967. I'm not going to bump versions, as this is a build fix without affecting binary outputs. 2021-07-12 09:53:05 -04:00
Jim Derry f95540b5c9 Fixed merge conflict; fixed non-build issue on macOS. RC for testing. 2021-07-10 11:13:58 -04:00
Jim Derry 79ff5ab896 Fixes #736. Language translators, please take a look at your translations. Version bump due to user-facing change. 2021-07-10 09:35:25 -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 8d3019da22 Fixes #798. Version bump due to potential behavior change. 2021-07-09 15:39:37 -04:00
Jim Derry 1dc6275512 Fixes #765. 2021-07-09 15:29:33 -04:00
Jim Derry 3dab4b31ce Fixed documentation for accessibility checking per #756; bump version due to public facing change. 2021-07-09 15:26:57 -04:00
Jim Derry ef3157e0ec Fix issues with user-specified settings changing
User-specified settings were being fiddled with by tidy internally. User
settings set by the user should always be able to be read back by the
user, but `AdjustConfig()` would change them. This change contributes
toward fixing the situation by using `AdjustConfig()` at the only point
that it's needed, as well by NOT automatically reverting to the snapshot
after outputting a buffer (which should be stateless, but caused PHP to
break because it tried to save buffer more than once, so subsequent calls
would use non-fiddle settings.).
2021-07-01 16:08:37 -04:00
Jim Derry 4f6c723d3b
Merge pull request #953 from ihsinme/patch-1
simple fix for the range of the condition.
2021-06-30 14:09:59 -04:00
Jim Derry 6d9e98d0a4
Merge pull request #949 from drichardson/add-muted
Add muted and playsinline video attributes for HTML5.
2021-06-30 13:40:57 -04:00
Jim Derry b9d1e2b5cc Merge branch 'next' into issue-839-2 2021-06-30 11:03:06 -04:00
Jim Derry bee0bf738a Merge branch 'next' into issue-729.
This brings in our regression testing again.
2021-06-30 10:04:16 -04:00
Jim Derry 64784e2582 Merge branch 'next' into issue-692 2021-06-30 09:08:04 -04:00
ihsinme 81603aa697
simple fix for the range of the condition.
simple fix for the range of the condition.
2021-06-13 15:25:27 +03:00
Doug Richardson dfd74c4803
Add muted and playsinline video attributes for HTML5. 2021-05-11 20:53:03 -07:00
Jim Derry 3230b08264 Added German language translation courtesy of michael.uplawski@uplawski.eu. 2021-04-28 16:20:14 -04:00
Russell Morris 7c2d950f13
Change open tag to Boolean (#932)
To address issue #925, PR #932
2021-04-15 18:21:00 +02:00
Geoff McLane a91ebf642b Is. #800 - ensure string is null terminated 2021-04-15 16:36:06 +02:00
Geoff McLane 957ee4a47e
Is. #681 - read-only files, and dirs (#926)
Tested in 3 majors OS'es... no problems... closes #681
2021-04-14 18:02:09 +02:00
Geoff McLane 0b18ab6978 Is. #891 Ensure no buffer over-run
Fixes #891
2020-11-30 17:56:09 +01:00
Caleb Callaway ba69b9e7cf
Support extended color names in HTML 5 validation (#914)
Fixes #908
2020-11-30 16:24:12 +01:00
Geoff McLane d0869dd4bd Is. #487 - Remove duplicated warning output 2020-11-24 20:27:37 +01:00
Geoff McLane 69ade7d1c6 Fix attr def table to match enum
Error made when merging LOADING Is. #879, PR #902

And merging SLOT PR #848

Also added a BIG warning over attribute_defs table to try to avoid this
in future.
2020-11-24 20:25:38 +01:00
Caleb Callaway 20f1e3c7bc
Fix percentage validation in CheckLength (#912)
Fixes #910
2020-11-22 19:45:32 +01:00
Caleb Callaway 91ae1274ac
Add SVG paint attributes (#907)
Fixes #903
2020-11-22 18:02:00 +01:00
Geoff McLane f49386e191
Issue #437 - re-use of 'wrap-php' option (#645)
closes #437
2020-11-22 16:44:31 +01:00