1HTML::Lint::HTML4(3)  User Contributed Perl Documentation HTML::Lint::HTML4(3)
2
3
4
5        'expectArgsRE' => 'A|FONT',
6
7        'headTagsRE' => 'TITLE|NEXTID|LINK|BASE|META',
8
9        'requiredContext' =>
10        {
11        'AREA'     => 'MAP',
12        'CAPTION'  => 'TABLE',
13        'DD'       => 'DL',
14        'DT'       => 'DL',
15        'FIELDSET' => 'FORM',
16        'FRAME'    => 'FRAMESET',
17        'INPUT'    => 'FORM',
18        'LABEL'    => 'FORM',
19        'LEGEND'   => 'FIELDSET',
20        'LI'       => 'DIR|MENU|OL|UL',
21        'NOFRAMES' => 'FRAMESET',
22        'OPTGROUP' => 'SELECT',
23        'OPTION'   => 'SELECT',
24        'SELECT'   => 'FORM',
25        'TD'       => 'TR',
26        'TEXTAREA' => 'FORM',
27        'TH'       => 'TR',
28        'TR'       => 'TABLE',
29        'PARAM'    => 'APPLET|OBJECT',
30        },
31
32        'okInHead' =>
33                {
34                        'ISINDEX' => 1,
35                        'TITLE'   => 1,
36                        'NEXTID'  => 1,
37                        'LINK'    => 1,
38                        'BASE'    => 1,
39                        'META'    => 1,
40                        'RANGE'   => 1,
41                        'STYLE'   => 1,
42                        'OBJECT'  => 1,
43                        '!--'     => 1,
44                },
45
46
47        ## elements which cannot be nested
48        'nonNest' => 'A|FORM',
49
50        'requiredAttributes' =>
51        {
52        APPLET  => 'WIDTH|HEIGHT',
53        AREA            => 'ALT',
54        BASE            => 'HREF',
55        BASEFONT        => 'SIZE',
56        BDO             => 'DIR',
57        FORM            => 'ACTION',
58        IMG             => 'SRC|ALT',
59        LINK            => 'HREF',
60        MAP             => 'NAME',
61        NEXTID  => 'N',
62        SELECT  => 'NAME',
63        TEXTAREA        => 'NAME|ROWS|COLS'
64        },
65
66        'attributeFormat' =>
67        {
68                'ALIGN',         'BOTTOM|MIDDLE|TOP|LEFT|CENTER|RIGHT|JUSTIFY|'.
69                                'BLEEDLEFT|BLEEDRIGHT|DECIMAL',
70                'ALINK'          => 'color',
71                'BGCOLOR'          => 'color',
72                'CLEAR',        'LEFT|RIGHT|ALL|NONE',
73                'COLOR'          => 'color',
74                'COLS',          '\d+|(\d*[*%]?,)*\s*\d*[*%]?',
75                'COLSPAN',         '\d+',
76                'DIR'           => 'LTR|RTL',
77                'HEIGHT',          '\d+',
78                'INDENT',          '\d+',
79                'LINK'          => 'color',
80                'MAXLENGTH',   '\d+',
81                'METHOD',          'GET|POST',
82                'ROWS',            '\d+|(\d*[*%]?,)*\s*\d*[*%]?',
83                'ROWSPAN',         '\d+',
84                'SEQNUM',          '\d+',
85                'SIZE',            '[-+]?\d+|\d+,\d+',
86                'SKIP',            '\d+',
87                'TYPE',            'CHECKBOX|HIDDEN|IMAGE|PASSWORD|RADIO|RESET|'.
88                                'SUBMIT|TEXT|[AaIi1]|disc|square|circle|'.
89                                'FILE|.*',
90                'UNITS',         'PIXELS|EN',
91                'VALIGN',        'TOP|MIDDLE|BOTTOM|BASELINE',
92                'VLINK'          => 'color',
93                'WIDTH',         '\d+%?',
94                'WRAP',          'OFF|VIRTUAL|PHYSICAL',
95                'X',             '\d+',
96                'Y',             '\d+'
97        },
98
99        'badTextContext' =>
100        {
101                'HEAD',  'BODY, or TITLE perhaps',
102                'UL',    'LI or LH',
103                'OL',    'LI or LH',
104                'DL',    'DT or DD',
105                'TABLE', 'TD or TH',
106                'TR',    'TD or TH'
107        },
108
109        'bodyColorAttributes' =>
110        [
111                qw(BGCOLOR TEXT LINK ALINK VLINK)
112        ],
113
114       );
115

NAME

117       HTML::Lint::HTML4.pm -- Rules for HTML 4 as used by HTML::Lint.
118

SYNOPSIS

120       No user serviceable parts inside.  Used by HTML::Lint.
121

SEE ALSO

123       HTML::Lint
124

AUTHOR

126       Andy Lester "andy at petdance.com"
127
129       Copyright (c) Andy Lester 2005. All Rights Reserved.
130
131       This module is free software; you can redistribute it and/or modify it
132       under the same terms as Perl itself.
133
134
135
136perl v5.12.0                      2008-12-18              HTML::Lint::HTML4(3)
Impressum