Commit graph

685 commits

Author SHA1 Message Date
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 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
Geoff McLane 68c70ae53a Is. #746 PR #747 - fix other dup 'const' modifier 2019-01-14 19:46:10 +01:00
Geoff McLane 937d67c313 Is. #770 #780 maybe #790 - remove 'setlocal' from lib! 2019-01-08 14:52:13 +01:00
Geoff McLane f53ee9db90
Merge pull request #785 from Lin-Buo-Ren/patch/fix-i18n-locale-detection
Is. #783 PR #785 - Fix language detection
2019-01-08 14:41:54 +01:00
林博仁(Buo-ren Lin) 88b99acdd6 Is. #783 - Fix language detection
The `setlocale` call doesn't return a single locale name in glibc when
any of the locale category variable has a different value, instead it
returns a composite locale name which is a concatenation of the entire
list of locale name and its values, causing the language detection fail.

This patch attempts to set the language via LC_MESSAGES and LANG
environment variables which are commonly used in POSIX-like systems,
then fallbacks to `setlocale` as the last resort.
2018-12-03 22:21:14 +08:00
林博仁(Buo-ren, Lin) edc70c52be Is. #781 - Drop redundant blank lines in -help
Fixes #781.
2018-11-29 16:59:43 +08:00
Antonios Hadjigeorgalis 5d4e46b333 Issue#649: added <data> tag
<time> tag used as model for adding <data> tag
2018-11-06 20:54:36 -05:00
Geoff McLane 65c982f73e Is #752 - Replace _MSC_VER with _WIN32 2018-09-04 20:22:56 +02:00
Geoff McLane 4ba6106057 Is #752 - Chg TC_MAIN_ERROR_LOAD_CONFIG to 'problems' 2018-09-04 20:20:14 +02:00
Geoff McLane 8c3ef4b6e2 Is #752 - Try STRING_MUTING_TYPE to TidyInfo 2018-09-04 20:17:55 +02:00
Geoff McLane 94e62b24ff Is #752 - Add windows tilde expansion 2018-09-02 20:07:11 +02:00
Geoff McLane cb23ab0372 Is #726 #185 - HTML5 is case sensitive for anchors.
modified:   src/attrs.c
2018-05-01 19:28:49 +02:00
Geoff McLane a4600ac5b0 Is #719 - Set 'muted' before any callback 2018-04-26 14:20:14 +02:00
Geoff McLane 9b076d0eca
Merge pull request #717 from ler762/doc-nits
Is #713 - Doc nits - PR #717
2018-04-24 14:41:24 +02:00
Geoff McLane a95c82df7f
Merge pull request #714 from htacg/issue-709
Is #709 - Improve message if 'implicit' - PR #714
2018-04-23 19:12:59 +02:00
Geoff McLane 8723681275 PR #712 - Only allow 'auto' on 'dir' for HTML5
modified:   src/attrs.c
2018-04-23 19:02:03 +02:00
Geoff McLane 3475d3e8cd
Merge pull request #712 from doronbehar/dir-auto
Make global attribute `dir` accept auto as well - PR #712
2018-04-23 18:51:17 +02:00
Geoff McLane 202ab98e10
Merge pull request #708 from htacg/issue-697-1
Is #697 - Add NOWRAP to print of pre tag - PR #708
2018-04-22 14:38:01 +02:00
Geoff McLane 63f507b4e9
Merge pull request #705 from htacg/issue-673
Is #673 - Revert 350f7b4 and 86e62db AdjustConfig logic - Is #704 PR #705
2018-04-21 14:28:59 +02:00