Commit graph

706 commits

Author SHA1 Message Date
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
Sid Vishnoi e5ef43f6c3
Is. #879: add loading attribute for img, iframe (#902)
Closes #879
2020-11-21 18:03:20 +01:00
lutianxiong 8f0e7aa22a
Free attributes before return NULL (#899) 2020-11-21 17:10:12 +01:00
Geoff McLane c6e0ccce1f
Is. #896 - make 'bear' docs match code (#898)
* Is. #896 - make 'bear' docs match code

* Is. #487 #462 add warn msg and do not get stuck until eof

The warning message could perhaps be better worded, and maybe there
should be another msg when a '>' is encountered while looking for a ']'
in a MS Word section, and perhaps the section should be discarded...

And perhaps it should be an error, to force the user to fix...

But the fix is good as it is, and these issues can be dealt with
later...

And this fix is piggy backed on this PR, but it is likewise related to
'word-2000' option...
2020-11-21 16:47:58 +01:00
lhchavez e51cd17c2d
Support the <slot> tag (#848)
* Support the <slot> tag

<slot> was added to the WHATWG HTML5 Living Standard on April 20, 2016.

* Also support the slot= attribute

Given that the <slot> tag by itself is not too useful, this commit also
introduces support for the global slot attribute.

* Using ParseBlock for <slot>

This is still suboptimal since ParseBlock will make it so that <slot>
always expects "Flow content", whereas the spec says that it should
have a Transparent content model.

In practice, it should allow all the cases that the spec allows for, but
it will also allow some cases that the spec does not allow. Notably, if
a <slot> tag is found in a Phrasing content (an inline context in
libtidy lingo), it will wrongly let Flow content (block tags in libtidy
lingo), whereas it shouldn't. But all in all, it's a good compromise.
2020-11-21 16:31:28 +01:00
Geoff McLane 48efad6a2b Is. #839 - 2nd look - add new message for 'blank' title
This is a compromise -

   1. Keep insertion of a blank title tag, if none.
   2. Add new warn if title tag is blank, in html5

	modified:   include/tidyenum.h
	modified:   src/language_en.h
	modified:   src/message.c
	modified:   src/parser.c
2020-10-11 17:56:08 +02:00
Geoff McLane 188988022d Fix typo, in purely DEBUG code, while exploring #863 2020-10-03 20:48:08 +02:00
Geoff McLane 0145af2821
Merge pull request #897 from arrmo/issue-895
Correction for issue-895
2020-10-02 18:25:24 +02:00
Geoff McLane ddbcd2abd0
Merge pull request #884 from ltx2018/next
fix memleak in GetTokenFromStream
2020-10-02 18:07:33 +02:00
Geoff McLane 089d14a19f
Merge pull request #853 from esclim/next
Protect against NULL in PruneSection.
2020-10-02 17:48:06 +02:00
Geoff McLane 3dafcf1341
Merge pull request #830 from htacg/issue-761-1
Is. #761 - just deal with the 'uint' wrap
2020-10-02 17:16:45 +02:00
Russell Morris 34cb411dd5 Correction for issue-895
As proposed by @geoffmcl - thanks!
2020-09-30 19:57:08 -05:00
Geoff McLane 4b2d5db743
Merge pull request #832 from htacg/issue-815
Is #815 - Use case-insensitive test 'html'
2020-09-28 20:27:20 +02:00
Geoff McLane e10f647f2b Is. #876: add legacy qual. to 'quote-ampersand' opt. 2020-09-28 19:47:37 +02:00
Geoff McLane 442e46f634 Is. #892: correct typo closes #892 2020-09-28 19:39:18 +02:00
lutianxiong 4377ab84a4
fix memleak in GetTokenFromStream
check asp & php if ParseAttribute return NULL
2020-06-20 09:19:17 +08:00
Eric 572538c6d7 Update clean.c
Protect against NULL in PruneSetion.
 A Null node happens when pruning unbalanced <![if ...]> <![endif]>.
2019-12-17 15:25:58 -05:00
Sorcus 43901812fd Change "tidyLocalMapItem" to "tidyLocaleMapItem" 2019-05-25 13:06:54 +00:00
Geoff McLane 7bc23f0e80 Is. #761 - just deal with the 'uint' wrap 2019-05-20 21:01:13 +02:00
Geoff McLane fd1fd8a388 Is #815 - Use case-insensitive test 'html' 2019-04-28 20:54:14 +02:00
Geoff McLane f7621d92fb
Merge pull request #782 from Lin-Buo-Ren/patch/fix-redundant-blank-lines-in-help
PR #782 - Drop redundant blank lines in -help - closes #781
2019-03-30 00:56:30 +01:00
Geoff McLane a71031f9e5
Merge pull request #769 from AntoniosHadji/issue-649
Issue #649 adding 'data' tag
2019-03-21 20:28:26 +01:00
Geoff McLane e46435fb29 Is #797 - use 'TidyRealloc' in place of raw 'realloc' 2019-01-31 20:01:02 +01:00
Geoff McLane 273c25dd38
Merge pull request #764 from htacg/issue-752
Issue #752, and other items
2019-01-31 19:13:14 +01:00