Skip to content
This repository has been archived by the owner on Apr 14, 2019. It is now read-only.

Commit

Permalink
doc-tag-required errors are now sorted by tag name.
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Apr 7, 2015
1 parent cdf1ac1 commit f5115c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ NOTE: All bugs and requests are now being handled through GitHub.

Please DO NOT send bug reports to http://rt.cpan.org/.

NEXT

[FIXES]
Errors of the type doc-tag-required did not come out in any defined
order. They are now sorted by tag name. This was discovered
because hash randomization caused tests to fail on Perl 5.18 and
above. Thanks, Slaven Rezic and Andrew Main.


2.22 Mon Apr 6 15:47:11 CDT 2015
[CHANGES THAT COULD BREAK YOUR CODE]
Previously, html_ok() would not check the entire structure of a web
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Lint/Parser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ sub _start_document {
sub _end_document {
my ($self,$line,$column) = @_;

for my $tag ( keys %isRequired ) {
for my $tag ( sort keys %isRequired ) {
if ( !$self->{_first_seen}->{$tag} ) {
$self->gripe( 'doc-tag-required', tag => $tag );
}
Expand Down

0 comments on commit f5115c7

Please sign in to comment.