Commit graph

1596 commits

Author SHA1 Message Date
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 4d833e9fde Merge branch 'next' of github.com:htacg/tidy-html5 into next 2020-10-02 18:34:19 +02:00
Geoff McLane 7cb5c8c6b5 Is. #895 PR #897 mod summary tag - Bump 5.7.35
Closes #895
2020-10-02 18:32:11 +02:00
Geoff McLane e0c1ce3a36 Is. #895 PR #896 mod summary tag - Bump 5.7.35 2020-10-02 18:30:32 +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 1698f9b305 PR #886 cmake enhancement - bump 5.7.34 2020-10-02 18:18:29 +02:00
Geoff McLane 60ae043431
Merge pull request #886 from SvenPStarFinanz/next
COMPILE_FLAGS property only once per target, avoid overwriting.
2020-10-02 18:16:04 +02:00
Geoff McLane 2f1b3c53fd PR #884 Fix memleak in GetTokenFromStream - bump 5.7.33 2020-10-02 18:11:06 +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 a26e3033ec PR #881 trans language_pt_br.po - bump 5.7.32 2020-10-02 18:00:10 +02:00
Geoff McLane ebfc930190
Merge pull request #881 from hugotiburtino/complete_pt_br_translation
Complete pt_br translation
2020-10-02 17:57:48 +02:00
Geoff McLane e166e5afe5 PR #853 word-2000 PruneSection fix - bump 5.7.31 2020-10-02 17:51:45 +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 f7e9de6c07 Is. #761 PR #830 - Bump to 5.7.30 for this fix. Closes #761 2020-10-02 17:23:23 +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 ed28a4541f Is. #815, PR #832 - no-case 'html' - bump to 5.7.29 2020-09-28 20:31:04 +02: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
Geoff McLane 0473972c46 Update cmake/32 and win64/64 builds 2020-09-28 16:07:35 +02:00
Sven Paschukat 74a7b2ee9d COMPILE_FLAGS property only once per target, avoid overwriting. 2020-06-29 09:02:37 +02:00
lutianxiong 4377ab84a4
fix memleak in GetTokenFromStream
check asp & php if ParseAttribute return NULL
2020-06-20 09:19:17 +08:00
Hugo B Tiburtino 469dc09ac0 Add translation to TC_TXT_HELP_ENV_1A, B and C 2020-05-19 00:42:54 +02:00
Hugo B Tiburtino 1f29bbe803 Add translation to TC_TXT_HELP_3A and TC_TXT_HELP_CONFIG 2020-05-19 00:33:35 +02:00
Hugo B Tiburtino 3a4f1193f8 Add translation to TC_OPT_EXP_CFG and DEF 2020-05-19 00:19:55 +02:00
Hugo B Tiburtino 652a4add85 Add translation to TC_OPT_HELPENV and delete empty spaces at TC_OPT_HELPOPT 2020-05-19 00:16:21 +02:00
Hugo B Tiburtino f6913adb56 Add translation to some lines, e.g. MISSING_ENDTAG_OPTIONAL
Add translation to MISSING_ENDTAG_OPTIONAL, MISSING_QUOTEMARK_OPEN,
OPTION_REMOVED, OPTION_REMOVED_APPLIED, OPTION_REMOVED_UNAPPLIED,
STRING_ARGUMENT_BAD, and STRING_MUTING_TYPE.
2020-05-19 00:05:43 +02:00
Hugo B Tiburtino 1b4e863c23 Add translation to MALFORMED_COMMENT_DROPPING, EOS and WARN 2020-05-18 23:53:28 +02:00
Hugo B Tiburtino 6d99e27409 Add translation to "FOOTNOTE_TRIM_EMPTY_ELEMENT" 2020-05-18 23:44:07 +02:00
Hugo B Tiburtino b895ebc1d7 Correct: translate "warning" as "aviso", not "acesso" 2020-05-18 23:37:03 +02:00
Hugo B Tiburtino 85f0b658fd Add translation to "TidyMuteShow" 2020-05-18 23:05:15 +02:00
Hugo B Tiburtino de8eec327f Add translation to "TidyMuteReports"
And change "tabs" to "tabulações" at TidyKeepTabs.
2020-05-18 23:00:55 +02:00
Hugo B Tiburtino 4a74d6a027 Add translation to "TidyKeepTabs" 2020-05-18 22:45:33 +02: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
Geoff McLane d1b906991a PR #825 #829 - Bump to 5.7.28 for doc fix 'LocalMap' to 'LocaleMap' 2019-07-08 20:52:14 +02:00
Geoff McLane cd21bb30ad
Merge pull request #829 from MrSorcus/patch-0
PR #825 #829 - Fix docs - "tidyLocalMapItem" to "tidyLocaleMapItem"
2019-07-08 20:48:57 +02:00
Geoff McLane 8ef80736a1 Is. #773 PR #823 - Bump to 5.7.27 for this fix 2019-06-07 20:54:13 +02:00
Geoff McLane e59a18decd
Merge pull request #823 from naveedpash/issue-773
PR #823 - added OS __ANDROID__ in tidyplatform.h - closes #773
2019-06-07 20:52:07 +02:00
Geoff McLane a067cc81d0 Is. #791 PR #809 - Bump to 5.7.26 for this fix 2019-06-07 20:35:52 +02:00
Geoff McLane dcf56a18ca
Merge pull request #809 from htacg/issue-791
Pr #809 - free some -xml-help allocations in tidy.c - closes #791
2019-06-07 20:31:47 +02:00
Geoff McLane d7b58cfba7 PR #793 - Bump to 5.7.25 for this small docs fix 2019-05-31 20:11:30 +02:00
Geoff McLane 654d00a7e8
Merge pull request #793 from SConaway/patch-1
Update BRANCHES.md
2019-05-31 20:08:46 +02: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
Naveed Aman Pasha 8fc8f745ec added OS __ANDROID__ to tidyplatform.h 2019-05-08 12:08:03 +05:00
Geoff McLane fd1fd8a388 Is #815 - Use case-insensitive test 'html' 2019-04-28 20:54:14 +02:00
Geoff McLane 0873d74f8e Is. #781, PR #782 - Bump to 5.7.24, for nl -h removal 2019-03-30 01:03:45 +01:00