File: attr-unknown.t

package info (click to toggle)
libhtml-lint-perl 2.20%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 304 kB
  • ctags: 64
  • sloc: perl: 1,014; sh: 48; makefile: 20
file content (19 lines) | stat: -rw-r--r-- 476 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( [
    [ 'attr-unknown' => qr/Unknown attribute "FOOD" for tag <P>/i ],
    [ 'attr-unknown' => qr/Unknown attribute "Yummy" for tag <I>/i ],
], [<DATA>] );
    
__DATA__
<HTML>
    <HEAD>
	<TITLE>Test stuff</TITLE>
    </HEAD>
    <BODY BGCOLOR="white">
	<P FOOD="Burrito" ALIGN=RIGHT>This is my paragraph about burritos</P>
	<I YUMMY="Spanish Rice">This is my paragraph about refried beans</I>
    </BODY>
</HTML>