Package: libhtml-tidy-perl / 1.60-1

Metadata

Package Version Patches format
libhtml-tidy-perl 1.60-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
tidy not tidyp.patch | (download)

Makefile.PL | 6 6 + 0 - 0 !
Tidy.xs | 15 13 + 2 - 0 !
lib/HTML/Tidy.pm | 7 7 + 0 - 0 !
t/version.t | 2 1 + 1 - 0 !
4 files changed, 27 insertions(+), 3 deletions(-)

 look for tidy if tidyp is not found

tidy-html5 is an actively-maintained, HTML5-supporting variant of
the tidy library from which tidyp was forked.

Based on Debian-specific patches by Florian Schlichting and
gregor herrmann, which unconditionally switched from tidyp to tidy.

lib ignore tidy html5 s differently formatted summar.patch | (download)

lib/HTML/Tidy.pm | 4 4 + 0 - 0 !
1 file changed, 4 insertions(+)

 lib: ignore tidy-html5's differently-formatted summary line

Signed-off-by: Simon McVittie <smcv@debian.org>

t allow tidy html5 as generator.patch | (download)

t/roundtrip.t | 2 1 + 1 - 0 !
t/unicode.t | 6 2 + 4 - 0 !
2 files changed, 3 insertions(+), 5 deletions(-)

 t: allow tidy-html5 as generator

Signed-off-by: Simon McVittie <smcv@debian.org>

t use a pre HTML5 DOCTYPE to get warnings about unes.patch | (download)

t/ignore-text.t | 8 5 + 3 - 0 !
t/ignore.t | 10 5 + 5 - 0 !
t/levels.t | 10 5 + 5 - 0 !
3 files changed, 15 insertions(+), 13 deletions(-)

 t: use a pre-html5 doctype to get warnings about unescaped ampersand

HTML5 defines an ampersand followed by whitespace to be unambiguously
an ampersand, matching what browsers have always done in practice.
As a result, tidy-html5 does not warn about them when the doctype
is either HTML5 or missing (lack of a DOCTYPE is treated as HTML5,
on the basis that HTML5 is a closer match for what browsers actually
do than any previous standard). Discussion here:
<https://github.com/htacg/tidy-html5/issues/207>

Adding the DOCTYPE throws off some of the line numbering, which needs
adjusting.

t/ignore-text.t also seems to rely on the missing DOCTYPE provoking a
warning, which is obviously not going to happen now that we've
added one, to be able to verify that case-insensitive ignoring
can work. Add a new error so we can ignore that instead.

Signed-off-by: Simon McVittie <smcv@debian.org>

t unicode.t don t assert that the DOCTYPE is preserv.patch | (download)

t/unicode.html | 2 1 + 1 - 0 !
t/unicode.t | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 t/unicode.t: don't assert that the doctype is preserved

tidy-html5 currently doesn't preserve user-supplied DOCTYPEs
in output: <https://github.com/htacg/tidy-html5/issues/435>

Signed-off-by: Simon McVittie <smcv@debian.org>

t don t assert that tidy will add a HTML 3.2 doctype.patch | (download)

t/clean.t | 2 1 + 1 - 0 !
t/roundtrip.t | 3 2 + 1 - 0 !
t/wordwrap.t | 3 2 + 1 - 0 !
3 files changed, 5 insertions(+), 3 deletions(-)

 t: don't assert that tidy will add a html 3.2 doctype

tidy-html5 adds the HTML5 doctype, <!DOCTYPE html>.

Signed-off-by: Simon McVittie <smcv@debian.org>

t venus.t adjust expected result for tidy html5.patch | (download)

t/venus.t | 32 19 + 13 - 0 !
1 file changed, 19 insertions(+), 13 deletions(-)

 t/venus.t: adjust expected result for tidy-html5

tidy-html5 allows arbitrary block content inside <address>, whereas
traditional tidy only allowed inline content.
Reference: <https://github.com/htacg/tidy-html5/issues/55>

This change will break with traditional tidy, and it isn't clear
to me how to remain compatible with both.

Signed-off-by: Simon McVittie <smcv@debian.org>

fix error message in webtidy | (download)

bin/webtidy | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 make webtidy error message more debianish