Debian Codegraph @

Changes

raw
1 Revision history HTML::Lint and Test::HTML::Lint.
2
3 NOTE: All bugs and requests are now being handled through GitHub.
4
5 https://github.com/petdance/html-lint/issues
6
7 Please DO NOT send bug reports to http://rt.cpan.org/.
8
9
10 2.32 Fri Jun 22 15:57:39 CDT 2018
11
12 Note that this very well may be the final release of HTML::Lint that I
13 make. I've been spending my time on HTML::Tidy5, which works on HTML5,
14 checks for more problems, and is much faster. If you're interested in
15 maintaining HTML::Lint, send me email at [email protected]. I'm not
16 sure I want to hand it off to anyone yet, but we can discuss.
17
18 [ENHANCEMENTS]
19 Allow "weblint -" to read from STDIN. Thanks, Frank Dana.
20
21
22 2.30 Sun Jan 7 22:02:25 CST 2018
23 No changes since 2.27_03.
24
25
26 2.27_03 Wed Jan 3 17:07:07 CST 2018
27 [FIXES]
28 Removed the text-invalid-entity and attr-invalid-entity, which were
29 for entities that had an invalid numeric value, anything greater
30 than &#65536. There is no longer a restriction on the numeric values
31 of HTML entities. (GH#60)
32
33
34 2.27_02 Wed Dec 27 11:46:28 CST 2017
35 There are be no functionality changes since 2.27_01.
36
37 [INTERNALS]
38 Many Perl::Critic cleanups.
39
40
41 2.27_01 Fri Dec 22 15:54:32 CST 2017
42 [ENHANCEMENTS]
43 Adds checking of entities in attributes, not just text. Thanks,
44 Klaus S. Madsen.
45
46 [FIXES]
47 Calling ->parsefile() would generate an error. Thanks, Shlomi
48 Fish. (GH#58)
49
50 [INTERNALS]
51 Prepare for perl 5.26.0 which removes '.' from @INC. Thanks,
52 Jim Keenan.
53
54 Fix disttest target. Thanks, Shlomi Fish.
55
56
57 2.26 Thu Dec 29 22:36:54 CST 2016
58 Stable release. No changes from previous release.
59
60
61 2.25_02 Tue Dec 27 14:34:22 CST 2016
62 [FIXES]
63 html_fragment_ok() was not properly excluding document-level errors.
64 It was effectively the same as html_ok().
65
66
67 2.25_01 Fri Dec 23 22:36:17 CST 2016
68 [ENHANCEMENTS]
69 Added two new types of errors to let you know you're using the
70 API incorrectly. You should be parsing files like this:
71
72 my $lint = HTML::Lint->new;
73 $lint->newfile( $filename );
74 $lint->parse( $line );
75 $lint->eof();
76 my @errors = $lint->errors();
77
78 If you neglect to call ->parse or ->eof, you'll get an error returned
79 in the list of errors from ->errors().
80
81 [FIXES]
82 Test::HTML::Lint::html_fragment_ok() was not properly calling ->eof.
83
84
85 2.24 Wed Dec 7 22:20:13 CST 2016
86 Official release. No changes from 2.23_01.
87
88
89 2.23_01 Tue Dec 6 22:48:56 CST 2016
90 [ENHANCEMENTS]
91 Added detection of unknown HTML entities, like "known &unclosed
92 &entities are not found". Also fixes the case where HTML::Lint
93 gets confused by an entity like "²" which it thought was an
94 unterminated "⊃" entity. Thanks, Klaus S. Madsen.
95
96 [FIXES]
97 Errors of the type doc-tag-required did not come out in any defined
98 order. They are now sorted by tag name. This was discovered
99 because hash randomization caused tests to fail on Perl 5.18 and
100 above. Thanks, Slaven Rezic, Andrew Main and Lisa Hare.
101
102 Handle some warnings that get thrown if certain values are undef.
103 Thanks, Yves Lavoie.
104
105 Handle characters that are not handled by HTML::Entities. (GitHub
106 issue #13) Thanks, Tim Landscheidt.
107
108 [INTERNALS]
109 Add a test to verify a fixed bug. Thanks to Lance Wicks as part of
110 the CPAN Pull Request Challenge.
111
112
113 2.22 Mon Apr 6 15:47:11 CDT 2015
114 [CHANGES THAT COULD BREAK YOUR CODE]
115 Previously, html_ok() would not check the entire structure of a web
116 page to check for <html>, <head>, <title> and <body> tags. Now it
117 will. If you want to check fragments of HTML for validity but know
118 that they are not valid HTML documents on their own, use the new
119 html_fragment_ok().
120
121 [ENHANCEMENTS]
122 Added new error, elem-input-alt-missing, that warns of <input
123 type="image"> tags that are missing an alt="" attribute. This helps
124 for accessability to make sure that any images have alternate text
125 for screen readers.
126
127 Added ability to modify HTML::Lint's table of known tags and
128 attributes, so you could do this:
129
130 # Add an attribute that your company uses.
131 HTML::Lint::HTML4::add_attribute( 'body', 'proprietary-attribute' );
132
133 # Add the HTML 5 <canvas> tag.
134 HTML::Lint::HTML4::add_tag( 'canvas' );
135 HTML::Lint::HTML4::add_attribute( 'canvas', $_ ) for qw( height width );
136
137 [FIXES]
138 Test::HTML::Lint::html_ok() would not call the HTML::Lint eof()
139 method, which meant it wouldn't do document-wide tests.
140
141 2.20 Fri Apr 6 00:49:51 CDT 2012
142 [ENHANCEMENTS]
143 Sometimes creating HTML::Lint-compliant HTML just isn't possible.
144 Now, you can now turn individual errors on and off in your HTML
145 via comment directives, like so:
146
147 <!-- html-lint elem-img-sizes-missing: off, attr-unknown: off -->
148
149 And if you have a batch of code that's hopeless:
150
151 <!-- html-lint all: off -->
152
153 Added check for unknown entities, such as "&foo;".
154
155 Added check for unclosed entitities, such as "&amp" without the
156 closing semicolon.
157
158 Added a check for a bare ampersand that should be written as &amp;
159
160
161 2.10 Tue Dec 6 11:16:16 CST 2011
162 [FIXES]
163 Tags that were self-closed were being ignored. For example, if you had
164
165 <img src="blah.jpg" />
166
167 then HTML::Lint would ignore the tag. This has been fixed.
168
169 [LICENSE]
170 HTML::Lint is now explicitly licensed under Artistic License 2.0,
171 instead of the vague "same terms as Perl itself."
172
173
174 2.06 Thu Dec 18 00:07:54 CST 2008
175 [FIXES]
176 Added attributes to <frameset>.
177
178 <strong> tag didn't allow any attributes. Now it does.
179
180 Removed the <listing> tag.
181
182
183 2.04 Mon Jun 2 11:41:16 CDT 2008
184 [FIXES]
185 <textarea> now knows about the wrap attribute.
186
187 [INTERNALS]
188 Lots of enhancements pointed out by Perl::Critic.
189
190
191 2.02 Thu Nov 3 11:49:18 CST 2005
192 [ENHANCEMENTS]
193 * The warnings for missing ALT and HEIGHT/WIDTH on your images
194 now give the SRC attribute.
195
196
197 2.00 Tue Sep 20 23:10:39 CDT 2005
198 [CHANGES THAT COULD BREAK YOUR CODE]
199 * I've changed the object structure. HTML::Lint now has-a
200 HTML::Parser, and no longer is-a HTML::Parser.
201
202 * weblint-cgi and weblint-original are no longer distributed
203 with HTML::Lint.
204
205 * Now requires Perl 5.6.0.
206
207 [FIXES]
208 * Line numbering is now correct if you parse more than one file.
209
210 * Changed t/*.*.t so that they only had one period in the
211 filename. Apparently VMS doesn't like filenames with multiple
212 dots.
213
214
215 Pre-2.00
216 I've thrown away previous history because really, nobody cares
217 what changed in this module prior to 2005.