File: t-unicode.t-don-t-assert-that-the-DOCTYPE-is-preserv.patch

package info (click to toggle)
libhtml-tidy-perl 1.56-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 392 kB
  • ctags: 198
  • sloc: perl: 1,185; sh: 23; makefile: 7
file content (36 lines) | stat: -rw-r--r-- 989 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Simon McVittie <smcv@debian.org>
Date: Fri, 22 Jul 2016 09:29:39 +0100
Subject: 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/unicode.html | 2 +-
 t/unicode.t    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/unicode.html b/t/unicode.html
index a90f83f..c8d1804 100644
--- a/t/unicode.html
+++ b/t/unicode.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<!DOCTYPE html>
 <html>
 <head>
 <title>日本語のホムページ</title>
diff --git a/t/unicode.t b/t/unicode.t
index 9ca6370..679b48a 100644
--- a/t/unicode.t
+++ b/t/unicode.t
@@ -53,7 +53,7 @@ subtest 'Try send bytes to clean method.' => sub {
 };
 
 __DATA__
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<!DOCTYPE html>
 <html>
 <head>
 <meta name="generator" content="Tidy">