File: elem-unclosed.t

package info (click to toggle)
libhtml-lint-perl 2.22%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 356 kB
  • ctags: 87
  • sloc: perl: 1,102; sh: 54; makefile: 20
file content (19 lines) | stat: -rw-r--r-- 429 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use warnings;
use strict;
require 't/LintTest.pl';

checkit( [
    [ 'elem-unclosed' => qr/\Q<b> at (6:5) is never closed/i ],
    [ 'elem-unclosed' => qr/\Q<i> at (7:5) is never closed/i ],
], [<DATA>] );
    
__DATA__
<HTML>
    <HEAD> <!-- Checking for elem-unclosed -->
	<TITLE>Test stuff</TITLE>
    </HEAD>
    <BODY BGCOLOR="white">
	<P><B>This is my paragraph</P>
	<P><I>This is another paragraph</P>
    </BODY>
</HTML>