File: attr-use-entity.t

package info (click to toggle)
libhtml-lint-perl 2.32%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 356 kB
  • sloc: perl: 1,739; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!perl

use warnings;
use strict;

use lib 't/';
use Util;

checkit( [
    [ 'attr-use-entity'      => qr/Character "\\xF1" should be written as ñ/ ],
    [ 'attr-use-entity'      => qr/Character "&" should be written as &/ ],
    [ 'attr-use-entity'      => qr/Character "&" should be written as &/ ],

], [<DATA>] );

__DATA__
<HTML>
    <HEAD>
        <TITLE>Test stuff</TITLE>
    </HEAD>
    <BODY BGCOLOR="We'll get to it maana, which should really have an &ntilde;">
    <a href="#" title="Who wants a peanut butter & jelly?  Mot&ouml;rhead does!  They love rock & roll"></a>
    </BODY>
</HTML>