./www/p5-HTML-Lint, Perl 5 module to check for HTML errors in a string or file

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.30, Package name: p5-HTML-Lint-2.30, Maintainer: pkgsrc-users

The Perl 5 module HTML::Lint checks for HTML errors in a string or
file. HTML::Lint also comes with a wrapper program called weblint
that handles linting from the command line.


Required to run:
[www/p5-HTML-Tagset] [www/p5-libwww] [www/p5-HTML-Parser] [lang/perl5]

Required to build:
[pkgtools/cwrappers]

Master sites: (Expand)

SHA1: e1371cce56f4015bfa4130000bf556103ddbb3b2
RMD160: 8c243571a2516abdf67e79ea657e5e2ffbeda7aa
Filesize: 29.833 KB

Version history: (Expand)


CVS history: (Expand)


   2018-01-08 08:33:14 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 2.30

Upstream changes:
2.30    Sun Jan  7 22:02:25 CST 2018
    No changes since 2.27_03.

2.27_03 Wed Jan  3 17:07:07 CST 2018
    [FIXES]
    Removed the text-invalid-entity and attr-invalid-entity, which were
    for entities that had an invalid numeric value, anything greater
    than &#65536.  There is no longer a restriction on the numeric values
    of HTML entities. (GH#60)

2.27_02 Wed Dec 27 11:46:28 CST 2017
    There are be no functionality changes since 2.27_01.

    [INTERNALS]
    Many Perl::Critic cleanups.

2.27_01 Fri Dec 22 15:54:32 CST 2017
    [ENHANCEMENTS]
    Adds checking of entities in attributes, not just text.  Thanks,
    Klaus S. Madsen.

    [FIXES]
    Calling ->parsefile() would generate an error.  Thanks, Shlomi
    Fish. (GH#58)

    [INTERNALS]
    Prepare for perl 5.26.0 which removes '.' from @INC.  Thanks,
    Jim Keenan.

    Fix disttest target.  Thanks, Shlomi Fish.
   2017-06-05 16:25:36 by Ryo ONODERA | Files touched by this commit (2298)
Log message:
Recursive revbump from lang/perl5 5.26.0
   2017-01-02 02:16:47 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 2.26

Upstream changes:
2.26    Thu Dec 29 22:36:54 CST 2016
    Stable release.  No changes from previous release.

2.25_02 Tue Dec 27 14:34:22 CST 2016
    [FIXES]
    html_fragment_ok() was not properly excluding document-level errors.
    It was effectively the same as html_ok().

2.25_01 Fri Dec 23 22:36:17 CST 2016
    [ENHANCEMENTS]
    Added two new types of errors to let you know you're using the
    API incorrectly.  You should be parsing files like this:

        my $lint = HTML::Lint->new;
        $lint->newfile( $filename );
        $lint->parse( $line );
        $lint->eof();
        my @errors = $lint->errors();

    If you neglect to call ->parse or ->eof, you'll get an error returned
    in the list of errors from ->errors().

    [FIXES]
    Test::HTML::Lint::html_fragment_ok() was not properly calling ->eof.
   2016-12-17 03:53:10 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Updateto 2.24

Upstream changes:
2.24    Wed Dec  7 22:20:13 CST 2016
    Official release.  No changes from 2.23_01.

2.23_01 Tue Dec  6 22:48:56 CST 2016
    [ENHANCEMENTS]
    Added detection of unknown HTML entities, like "known &unclosed
    &entities are not found".  Also fixes the case where HTML::Lint
    gets confused by an entity like "²" which it thought was an
    unterminated "⊃" entity.  Thanks, Klaus S. Madsen.

    [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, Andrew Main and Lisa Hare.

    Handle some warnings that get thrown if certain values are undef.
    Thanks, Yves Lavoie.

    Handle characters that are not handled by HTML::Entities. (GitHub
    issue #13) Thanks, Tim Landscheidt.

    [INTERNALS]
    Add a test to verify a fixed bug. Thanks to Lance Wicks as part of
    the CPAN Pull Request Challenge.
   2016-06-08 21:25:20 by Thomas Klausner | Files touched by this commit (2236) | Package updated
Log message:
Bump PKGREVISION for perl-5.24.
   2015-11-04 03:47:43 by Alistair G. Crooks | Files touched by this commit (758)
Log message:
Add SHA512 digests for distfiles for www category

Problems found locating distfiles:
	Package haskell-cgi: missing distfile haskell-cgi-20001206.tar.gz
	Package nginx: missing distfile array-var-nginx-module-0.04.tar.gz
	Package nginx: missing distfile encrypted-session-nginx-module-0.04.tar.gz
	Package nginx: missing distfile headers-more-nginx-module-0.261.tar.gz
	Package nginx: missing distfile nginx_http_push_module-0.692.tar.gz
	Package nginx: missing distfile set-misc-nginx-module-0.29.tar.gz
	Package nginx-devel: missing distfile echo-nginx-module-0.58.tar.gz
	Package nginx-devel: missing distfile form-input-nginx-module-0.11.tar.gz
	Package nginx-devel: missing distfile lua-nginx-module-0.9.16.tar.gz
	Package nginx-devel: missing distfile nginx_http_push_module-0.692.tar.gz
	Package nginx-devel: missing distfile set-misc-nginx-module-0.29.tar.gz
	Package php-owncloud: missing distfile owncloud-8.2.0.tar.bz2

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2015-06-12 12:52:19 by Thomas Klausner | Files touched by this commit (3152)
Log message:
Recursive PKGREVISION bump for all packages mentioning 'perl',
having a PKGNAME of p5-*, or depending such a package,
for perl-5.22.0.
   2015-05-14 11:13:13 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
(pkgsrc note)
 - Nothing changed, but just a note. 'make test' fails at t/12-html_fragment_ok.t.
   It is because the randomness of error output, saying either \ 
<head><title><html>
   is missing (if neither of them exists). (To see, try 'make test' several times).
(upstream)
 - update 2.20 to 2.22
-------------------
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
    page to check for <html>, <head>, <title> and <body> \ 
tags.  Now it
    will.  If you want to check fragments of HTML for validity but know
    that they are not valid HTML documents on their own, use the new
    html_fragment_ok().

    [ENHANCEMENTS]
    Added new error, elem-input-alt-missing, that warns of <input
    type="image"> tags that are missing an alt="" \ 
attribute.  This helps
    for accessability to make sure that any images have alternate text
    for screen readers.

    Added ability to modify HTML::Lint's table of known tags and
    attributes, so you could do this:

        # Add an attribute that your company uses.
        HTML::Lint::HTML4::add_attribute( 'body', 'proprietary-attribute' );

        # Add the HTML 5 <canvas> tag.
        HTML::Lint::HTML4::add_tag( 'canvas' );
        HTML::Lint::HTML4::add_attribute( 'canvas', $_ ) for qw( height width );

    [FIXES]
    Test::HTML::Lint::html_ok() would not call the HTML::Lint eof()
    method, which meant it wouldn't do document-wide tests.