Up to [cvs.NetBSD.org] / pkgsrc / www / p5-HTML-Parser
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
p5-HTML-Parser: update to 3.86.
3.86 2026-09-19
- Expand an entity whose value is the string being decoded to the
value that string had when the call began (GH#69) (Paul Johnson)
*: recursive bump for perl5 5.44.0
p5-HTML-Parser: update to 3.85.
3.85 2026-05-19
- Replace deprecated uvuni_to_utf8() with uvchr_to_utf8() (GH#50)
(GitHub Copilot, reported by James E Keenan)
3.84 2026-05-19
- Fix heap-use-after-free in _decode_entities (CVE-2026-8829) (GH#56)
(Paul Johnson)
*: bump for perl 5.42.0
*: recursive bump for perl 5.40
p5-HTML-Parser: update to 3.83.
3.83 2024-07-30
- fix '$\/]' in HTML::Entities::encode_entities (GH#45) (mauke)
p5-HTML-Parser: update to 3.82.
3.82 2024-03-13
- "img lowsrc" and "body background" are not in the HTMLv5 spec (GH#43)
(Jess)
- Replace "FileHandle" with "IO::File" (GH#42) (James Raspass)
- Fix some minor typos (GH#41) (Yoshikazu Sawa)
*: recursive bump for perl 5.38
Update to 3.81
3.81 2023-01-30
- Stop depending on "Test" (GH#34) (James Raspass)
- fix test scripts after conversion to Test::More (GH#35) (Graham Knop)
Update to 3.80
Upstream changes:
3.80 2022-11-01
* Fix compatibility with ancient perl by avoiding index in test (GH#33)
(Graham Knop)
3.79 2022-10-12
* Modernise XS (GH#32) (James Raspass)
* Skip threads on older perl versions, as they often segfault (GH#31) (Graham
* Knop)
Update to 3.78 Upstream changes: 3.78 2022-03-28 * Remove unused variable (GH#26) (Michal Josef Špaček) 3.77 2022-03-14 * Update tests to remove HTML4 specific tags (GH#25) (Jess)
*: recursive bump for perl 5.36
*: recursive bump for perl 5.34
Update to 3.76
Upstream changes:
3.76 2021-03-04
* Add a fix for a stack confusion error on `eof`. (GH#21) (Matthew Horsfall
and Chase Whitener)
p5-HTML-Parser: update to 3.75.
3.75 2020-08-30
* Cleanup the prereqs a bit
* Mark HTML::Filter as deprecated as the docs point out
* Move Parser.pm into the lib directory with the others. This will help
with everything from auto version bumps after releases, to scanning for
prerequisites and spelling errors.
* Fix a few spelling errors in the POD for HTML::Parser
* Clean up the spacing on many examples in HTML::Parser
3.74 2020-08-30
* Fix the order of date and version in this change log. (Thanks, haarg)
* Convert to Dist::Zilla
* Build all prereqs from our cpanfile
* Go through all test files and:
* perltidy
* Use strict/warnings
* Get rid of two-arg open
* Get rid of BAREWORD filehandles
* Fix the eval pattern used
* Only use -w where we catch $SIG{__WARN__}
* Fix encoding problems
* use utf8 where we have unicode in the source
* Fix a typo here and there
* perltidy all of the example apps in eg/
* Add comments explaining the apps in eg/ (GH#13 Thanks, Salvatore Bonaccorso)
* Print out UTF-8 encoded data where sensible in eg/
3.73 2020-08-24
* Cleaned up this changes log.
* Added a .mailmap file to organize contributions accurately.
* Ensure all versions are equal and on the current version
* Add the .mailmap to the MANIFEST
* Change the META information to point to the new GH repository
* Add a .perltidyrc to use going forward
* Add hctype.h and pfunc.h to the dist as static files and stop asking
for them to be built on the user's end.
* Remove t/pod.t from userland testing
* Remove t/pod-coverage.t from userland testing
* Clean up the MANIFEST
* Start testing via GitHub Actions/Workflows
* Protect active parser from being freed (PR 13, RT #115034)
*: bump PKGREVISION for perl-5.32.
Bump PKGREVISIONs for perl 5.30.0
Update packages using a search.cpan.org HOMEPAGE to metacpan.org. The former now redirects to the latter. This covers the most simple cases where http://search.cpan.org/dist/name can be changed to https://metacpan.org/release/name. Reviewed by hand to hopefully make sure no unwanted changes sneak in.
Recursive bump for perl5-5.28.0
Recursive revbump from lang/perl5 5.26.0
Bump PKGREVISION for perl-5.24.
Update p5-HTML-Parser to 3.72:
2016-01-19 Release 3.72
Gisle Aas (3):
Avoid more clang casting warnings
Remove trailing whitespace
Ensure entities expand to utf8 sequences under 'utf8_mode' [RT#99755]
David Steinbrunner (2):
typo fix
typo fixes
Jacques Germishuys (1):
Silence clang warning
bulk88 (1):
const+static-ing
Recursive PKGREVISION bump for all packages mentioning 'perl', having a PKGNAME of p5-*, or depending such a package, for perl-5.22.0.
Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles.
Remove SVR4_PKGNAME, per discussion on tech-pkg.
Bump for perl-5.20.0. Do it for all packages that * mention perl, or * have a directory name starting with p5-*, or * depend on a package starting with p5- like last time, for 5.18, where this didn't lead to complaints. Let me know if you have any this time.
Bump all packages for perl-5.18, that a) refer 'perl' in their Makefile, or b) have a directory name of p5-*, or c) have any dependency on any p5-* package Like last time, where this caused no complaints.
Update to 3.71
Upstream changes:
2013-05-09 Release 3.71
Gisle Aas (1):
Transform ':' in headers to '-' [RT#80524]
_______________________________________________________________________________
2013-03-28 Release 3.70
François Perrad (1):
Fix for cross-compiling with Buildroot
Gisle Aas (1):
Comment typo fix
Yves Orton (1):
Fix Issue #3 / RT #84144: HTML::Entities::decode_entities() needs
to call SV_CHECK_THINKFIRST() before checking READONLY flag
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
Bump all packages that use perl, or depend on a p5-* package, or are called p5-*. I hope that's all of them.
Updated to 3.69
ChangeLog:
2011-10-15 Release 3.69
Gisle Aas (4):
Documentation fix; encode_utf8 mixup [RT#71151]
Make it clearer that there are 2 (actually 3) options for handing "UTF-8 garbage"
Github is the official repo
Can't be bothered to try to fix the failures that occur on perl-5.6
Barbie (1):
fix to TokeParser to correctly handle option configuration
Jon Jensen (1):
Aesthetic change: remove extra ;
Ville Skyttä (1):
Trim surrounding whitespace from extracted URLs.
Revision bump after updating perl to 5.14.1.
Updating www/p5-HTML-Parser from 3.67nb1 to 3.68
Upstream changes:
2010-09-01 Release 3.68
Gisle Aas (1):
Declare the encoding of the POD to be utf8
Bump the PKGREVISION for all packages which depend directly on perl, to trigger/signal a rebuild for the transition 5.10.1 -> 5.12.1. The list of packages is computed by finding all packages which end up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl, or PERL5_PACKLIST defined in their make setup (tested via "make show-vars VARNAMES=..."), minus the packages updated after the perl package update. sno@ was right after all, obache@ kindly asked and he@ led the way. Thanks!
Updating www/p5-HTML-Parser from 3.66 to 3.67
Upstream changes:
2010-08-17 Release 3.67
Nicholas Clark (1):
bleadperl 2154eca7 breaks HTML::Parser 3.66 [RT#60368]
Update p5-HTML-Parser from version 3.65 to version 3.66.
Upstream changes:
2010-07-09 Release 3.66
Gisle Aas (1):
Fix entity decoding in utf8_mode for the title header
Update p5-HTML-Parser from version 3.64 to version 3.65.
Upstream changes:
2010-04-04 Release 3.65
Gisle Aas (1):
Eliminate buggy entities_decode_old
Salvatore Bonaccorso (1):
Fixed endianness typo [RT#50811]
Ville Skyttä (1):
Documentation fixes.
Updating www/p5-HTML-Parser from 3.63 to 3.64
Upstream changes:
2009-10-25 Release 3.64
Gisle Aas (5):
Convert files to UTF-8
Don't allow decode_entities() to generate illegal Unicode chars
Copyright 2009
Remove rendundant (repeated) test
Make parse_file() method use 3-arg open [RT#49434]
Pullup ticket 2927 - requested by obache
security update
Revisions pulled up:
- pkgsrc/www/p5-HTML-Parser/Makefile 1.47
- pkgsrc/www/p5-HTML-Parser/distinfo 1.22
-------------------------------------------------------------------------
Module Name: pkgsrc
Committed By: sno
Date: Sat Oct 24 16:07:16 UTC 2009
Modified Files:
pkgsrc/www/p5-HTML-Parser: Makefile distinfo
Log Message:
Updating www/p5-HTML-Parser from 3.62 to 3.63
Upstream changes:
2009-10-22 Release 3.63
Gisle Aas (2):
Take more care to prepare the char range for encode_entities [RT#50170]
decode_entities confused by trailing incomplete entity
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 pkgsrc/www/p5-HTML-Parser/Makefile
cvs rdiff -u -r1.21 -r1.22 pkgsrc/www/p5-HTML-Parser/distinfo
Updating www/p5-HTML-Parser from 3.62 to 3.63
Upstream changes:
2009-10-22 Release 3.63
Gisle Aas (2):
Take more care to prepare the char range for encode_entities [RT#50170]
decode_entities confused by trailing incomplete entity
Updating package for www/p5-HTML-Parser from 3.61 to 3.62
Upstream changes:
2009-08-13 Release 3.62
Ville Skytt"a (4):
HTTP::Header doc typo fix.
Do not bother tracking style or script, they're ignored.
Bring HTML 5 head elements up to date with WD-html5-20090423.
Improve HeadParser performance.
Gisle Aas (1):
Doc patch: Make it clearer what the return value from ->parse is
pkgsrc changes:
- Updating package for p5 module HTML::Parser from 3.60 to 3.61
- Setting LICENSE=${PERL5_LICENSE} according to META.yml
Upstream changes:
2009-06-20 Release 3.61
Gisle Aas (2):
Test that triggers the crash that Chip fixed
Complete documented list of literal tags
Chip Salzenberg (1):
Avoid crash (referenced pend_text instead of skipped_text)
Antonio Radici (1):
Reference HTML::LinkExttor [RT#43164]
Update to 3.60:
2009-02-09 Release 3.60
Ville Skytta (5):
Spelling fixes.
Test multi-value headers.
Documentation improvements.
Do not terminate head parsing on the <object> element (added in HTML 4.0).
Add support for HTML 5 <meta charset> and new HEAD elements.
Damyan Ivanov (1):
Short description of the htextsub example
Mike South (1):
Suppress warning when encode_entities is called with undef [RT#27567]
Zefram (1):
HTML::Parser doesn't compile with perl 5.8.0.
Update from version 3.56nb1 to 3.59.
Upstream changes:
2008-11-24 Gisle Aas <gisle@ActiveState.com>
Release 3.59
Restore perl-5.6 compatibility for HTML::HeadParser.
Improved META.yml
2008-11-17 Gisle Aas <gisle@ActiveState.com>
Release 3.58
Suppress "Parsing of undecoded UTF-8 will give garbage" warning
with attr_encoded [RT#29089]
HTML::HeadParser:
- Recognize the Unicode BOM in utf8_mode as well [RT#27522]
- Avoid ending up with '/' keys attribute in Link headers.
2008-11-16 Gisle Aas <gisle@ActiveState.com>
Release 3.57
The <iframe> element content is now parsed in literal mode.
Parsing of <script> and <style> content ends on the first end tag
even when that tag was in a quoted string. That seems to be the
behaviour of all modern browsers.
Implement backquote() attribute as requested by Alex Kapranoff.
Test and documentation tweaks from Alex Kapranoff.
Bump the PKGREVISION for all packages which depend directly on perl, to trigger/signal a rebuild for the transition 5.8.8 -> 5.10.0. The list of packages is computed by finding all packages which end up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl, or PERL5_PACKLIST defined in their make setup (tested via "make show-vars VARNAMES=...").
The package needs a C compiler.
Update to 3.56:
2007-01-12 Gisle Aas
Release 3.56
Cloning of parser state for compatiblity with threads.
Fixed by Bo Lindbergh
Don't require whitespace between declaration tokens.
<http://rt.cpan.org/Ticket/Display.html?id=20864>
2006-07-10 Gisle Aas
Release 3.55
Treat <> at the end of document as text. Used to be
reported as a comment.
Improved Firefox compatiblity for bad HTML:
- Unclosed <script>, <style> are now treated as empty tags.
- Unclosed <textarea>, <xmp> and <plaintext> treat rest as text.
- Unclosed <title> closes at next tag.
Make <!a'b> a comment by itself.
DESTDIR support.
Update to 3.54:
2006-04-28 Gisle Aas
Release 3.54
Yaakov Belch discovered yet another issue with <script> parsing.
Enabling of 'empty_element_tags' got the parser confused
if it found such a tag for elements that are normally parsed
in literal mode. Of these <script src="..."/> is the only
one likely to be found in documents.
<http://rt.cpan.org//Ticket/Display.html?id=18965>
2006-04-27 Gisle Aas
Release 3.53
When ignore_element was enabled it got confused if the
corresponding tags did not nest properly; the end tag
was treated it as if it was a start tag.
Found and fixed by Yaakov Belch
<http://rt.cpan.org/Ticket/Display.html?id=18936>
2006-04-26 Gisle Aas
Release 3.52
Make sure the 'start_document' fires exactly once for
each document parsed. For earlier releases it did not
fire at all for empty documents and could fire multiple
times if parse was called with empty chunks.
Documentation tweaks and typo fixes.
2006-03-22 Gisle Aas
Release 3.51
Named entities outside the Latin-1 range are now only expanded
when properly terminated with ";". This makes HTML::Parser
compatible with Firefox/Konqueror/MSIE when it comes to how these
entities are expanded in attribute values. Firefox does expand
unterminated non-Latin-1 entities in plain text, so here
HTML::Parser only stays compatible with Konqueror/MSIE.
Fixes <http://rt.cpan.org/Ticket/Display.html?id=17962>.
Fixed some documentation typos spotted by william at knowmad.com.
<http://rt.cpan.org/Ticket/Display.html?id=18062>
Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no developer is officially maintaining the package. The rationale for changing this from "tech-pkg" to "pkgsrc-users" is that it implies that any user can try to maintain the package (by submitting patches to the mailing list). Since the folks most likely to care about the package are the folks that want to use it or are already using it, this would leverage the energy of users who aren't developers.
Update p5-HTML-Parser to 3.50: Release 3.50 The 3.49 release didn't compile with VC++ because it mixed code and declarations. Fixed by Steve Hay <steve.hay@uk.radan.com>.
Update to 3.49:
2006-01-08 Gisle Aas
Release 3.49
Events could sometimes still fire after a handler has signaled eof.
Marked_sections with text ending in square bracket parsed wrong.
<http://rt.cpan.org/Ticket/Display.html?id=16749>
Update to 3.48:
2005-12-02 Gisle Aas
Release 3.48
Enabling empty_element_tags by default for HTML::TokeParser
was a mistake. Reverted that change.
<https://rt.cpan.org/Ticket/Display.html?id=16164>
When processing a document with "marked_sections => 1", the
skipped text missed the first 3 bytes "<![".
<https://rt.cpan.org/Ticket/Display.html?id=16207>
2005-11-22 Gisle Aas
Release 3.47
Added empty_element_tags and xml_pic configuration
options. These make it possible to enable these XML
features without enabling the full XML-mode.
The empty_element_tags is enabled by default for
HTML::TokeParser.
Update to 3.46:
2005-10-24 Gisle Aas
Release 3.46
Don't try to treat an literal as space.
This breaks Unicode parsing.
https://rt.cpan.org/Ticket/Display.html?id=15068
The unbroken_text option is now by default on
for HTML::TokeParser.
HTML::Entities::encode will no encode "'" by default.
Improved report/ignore_tags documentation by
Norbert Kiesel
Test suite now use Test::More, by
Norbert Kiesel
Fix HTML::Entities typo spotted by
Stefan Funke
Faster load time with XSLoader (perl-5.6 or better now required).
Fixed POD markup errors in some of the modules.
Bump the PKGREVISIONs of all (638) packages that hardcode the locations of Perl files to deal with the perl-5.8.7 update that moved all pkgsrc-installed Perl files into the "vendor" directories.
Turn PERL5_PACKLIST into a relative path instead of an absolute path.
These paths are now relative to PERL5_PACKLIST_DIR, which currently
defaults to ${PERL5_SITEARCH}. There is no change to the binary
packages.
Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
Update to 3.45:
2005-01-06 Gisle Aas
Release 3.45
Fix stack memory leak caused by missing PUTBACK. Only
code that used $p->parse(\&cb) form was affected.
Fix provided by Gurusamy Sarathy
2004-12-28 Gisle Aas
Release 3.44
Fix confusion about nested quotes in <script> and <style> text.
2004-12-06 Gisle Aas
Release 3.43
The SvUTF8 flag was not propagated correctly when replacing
unterminated entities.
Fixed test failure because of missing binmode on Windows.
since perl is now built with threads on most platforms, the perl archlib module directory has changed (eg. "darwin-2level" vs. "darwin-thread-multi-2level"). binary packages of perl modules need to be distinguishable between being built against threaded perl and unthreaded perl, so bump the PKGREVISION of all perl module packages and introduce BUILDLINK_RECOMMENDED for perl as perl>=5.8.5nb5 so the correct dependencies are registered and the binary packages are distinct. addresses PR pkg/28619 from H. Todd Fujinaka.
Update p5-HTML-Parser from version 3.35 to 3.42.
Change HOMEPAGE to author-independent link on search.cpan.org.
Change log:
2004-12-04 Gisle Aas <gisle@ActiveState.com>
Release 3.42
Avoid sv_catpvn_utf8_upgrade() as that macro was not
available in perl-5.8.0.
Patch by Reed Russell <Russell.Reed@acxiom.com>.
Add casts to suppress compilation warnings for char/U8
mismatches.
HTML::HeadParser will always push new header values.
This make sure we never loose old header values.
2004-11-30 Gisle Aas <gisle@ActiveState.com>
Release 3.41
Fix unresolved symbol error with perl-5.005.
2004-11-29 Gisle Aas <gisle@ActiveState.com>
Release 3.40
Make utf8_mode only available on perl-5.8 or better. It produced
garbage with older versions of perl.
Emit warning if entities are decoded and something in the first
chunk looks like hibit UTF-8. Previously this warning was only
triggered for documents with BOM.
2004-11-23 Gisle Aas <gisle@ActiveState.com>
Release 3.39_92
More documentation of the Unicode issues. Moved around HTML::Parser
documentation a bit.
New boolean option; $p->utf8_mode to allow parsing of raw UTF-8.
Documented that HTML::Entities::decode_entities() can take multiple
arguments.
Unterminated entities are now decoded in text (compatibility
with MSIE misfeature).
Document HTML::Entities::_decode_entities(); this variation of the
decode_entities() function has been available for a long time, but
have not been documented until now.
HTML::Entities::_decode_entities() can now be told to try to
expand unterminated entities.
Simplified Makefile.PL
2004-11-23 Gisle Aas <gisle@ActiveState.com>
Release 3.39_91
The HTML::HeadParser will skip Unicode BOM. Previously it
would consider the <head> section done when it saw the BOM.
The parser will look for Unicode BOM and give appropriate
warnings if the form found indicate trouble.
If no matching end tag is found for <script>, <style>, <xmp>
<title>, <textarea> then generate one where the next tag
starts.
For <script> and <style> recognize quoted strings and don't
consider end element if the corresponding end tag is found
inside such a string.
2004-11-17 Gisle Aas <gisle@ActiveState.com>
Release 3.39_90
The <title> element is now parsed in literal mode, which
means that other tags are not recognized until </title> has
been seen.
Unicode support for perl-5.8 and better.
Decoding Unicode entities always enabled; no longer a compile
time option.
Propagation of UTF8 state on strings.
Patch contributed by John Gardiner Myers <jgmyers@proofpoint.com>.
Calculate offsets and lengths in chars for Unicode strings.
Fixed link typo in the HTML::TokeParser documentation.
2004-11-11 Gisle Aas <gisle@ActiveState.com>
Release 3.38
New boolean option; $p->closing_plaintext
Contributed by Alex Kapranoff <alex@kapranoff.ru>
2004-11-10 Gisle Aas <gisle@ActiveState.com>
Release 3.37
Improved handling of HTML encoded surrogate pairs and illegally
endoded Unicode; <http://rt.cpan.org/Ticket/Display.html?id=7785>.
Patch by John Gardiner Myers <jgmyers@proofpoint.com>.
Avoid generating bad UTF8 strings when decoding entities
representing chars beyond #255 in 8-bit strings. Such bad
UTF8 sometimes made perl-5.8.5 and older segfault.
Undocument v2 style subclassing in synopsis section.
Internal cleanup:
Make 'gcc -Wall' happier.
Avoid modification of PVs during parsing of attrspec.
Another patch by John Gardiner Myers.
2004-04-01 Gisle Aas <gisle@ActiveState.com>
Release 3.36
Improved MSIE/Mozilla compatibility. If the same attribute
name repeats for a start tag, use the first value instead
of the last. Patch by Nick Duffek <html-parser@duffek.com>.
<https://rt.cpan.org/Ticket/Display.html?id=5472>
Relinquish maintainership of packages to tech-pkg@NetBSD.org.
Updated p5-HTML-Parser to 3.35
- Documentation fixes by Paul Croome <Paul.Croome@softwareag.com>.
- Removed redundant dSP.
bl3ify
Pullup upgrade of p5-HTML-Parser to version 3.34 to the pkgsrc-2003Q4 branch, requested by Grant Beattie. Module Name: pkgsrc Committed By: grant Date: Thu Nov 27 16:34:00 UTC 2003 Modified Files: pkgsrc/www/p5-HTML-Parser: Makefile distinfo Log Message: Updated p5-HTML-Parser to 3.34. changes since 3.31: Release 3.34 Fix segfault that happened when the parse callback caused the stack to get reallocated. The original bug report was <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=217616> Release 3.33 Perl 5.005 or better is now required. For some reason we get a test failure with perl-5.004 and I don't really feel like debugging that perl any more. Details about this failure can be found at <http://rt.cpan.org/Ticket/Display.html?id=4065>. New HTML::TokeParser method called 'get_phrase'. It returns all current text while ignoring any phrase-level markup. The HTML::TokeParser method 'get_text' now expands skipped non-phrase-level tags as a single space. Release 3.32 If the document parsed ended with some kind of unterminated markup, then the parser state was not reset properly and this piece of markup would show up in the beginning of the next document parsed. <http://rt.cpan.org/Ticket/Display.html?id=3954> The get_text and get_trimmed_text methods of HTML::TokeParser can now take multiple end tags as argument. Patch by <siegmann@tinbergen.nl> at <http://rt.cpan.org/Ticket/Display.html?id=3166>. Various documentation tweaks. Included another example program: hdump
Updated p5-HTML-Parser to 3.34.
changes since 3.31:
Release 3.34
Fix segfault that happened when the parse callback caused
the stack to get reallocated. The original bug report was
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=217616>
Release 3.33
Perl 5.005 or better is now required. For some reason we get
a test failure with perl-5.004 and I don't really feel like
debugging that perl any more. Details about this failure can
be found at <http://rt.cpan.org/Ticket/Display.html?id=4065>.
New HTML::TokeParser method called 'get_phrase'. It returns
all current text while ignoring any phrase-level markup.
The HTML::TokeParser method 'get_text' now expands skipped
non-phrase-level tags as a single space.
Release 3.32
If the document parsed ended with some kind of unterminated markup,
then the parser state was not reset properly and this piece of markup
would show up in the beginning of the next document parsed.
<http://rt.cpan.org/Ticket/Display.html?id=3954>
The get_text and get_trimmed_text methods of HTML::TokeParser can
now take multiple end tags as argument. Patch by <siegmann@tinbergen.nl>
at <http://rt.cpan.org/Ticket/Display.html?id=3166>.
Various documentation tweaks.
Included another example program: hdump
Update to 3.31.
Better compatibility with Mozilla/MSIE behaviour.
==== Changes since 3.27 ====
2003-08-19 Gisle Aas <gisle@ActiveState.com>
Release 3.31
The -DDEBUGGING fix in 3.30 was not really there :-(
2003-08-17 Gisle Aas <gisle@ActiveState.com>
Release 3.30
The previous release failed to compile on a -DDEBUGGING perl
like the one provided by Redhat 9.
Got rid of references to perl-5.7.
Further fixes to avoid warnings from Visual C.
Patch by Steve Hay <steve.hay@uk.radan.com>.
2003-08-14 Gisle Aas <gisle@ActiveState.com>
Release 3.29
Setting xml_mode now implies strict_names also for end tags.
Avoid warning from Visual C. Patch by <gsar@activestate.com>.
64-bit fix from Doug Larrick <doug@ties.org>
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=195500
Try to parse similar to Mozilla/MSIE in certain edge cases.
All these are outside of the official definition of HTML but
HTML spam often tries to take advantage of these.
- New configuration attribute 'strict_end'. Unless enabled
we will allow end tags to contain extra words or stuff
that look like attributes before the '>'. This means that
tags like these:
</foo foo="<ignored>">
</foo ignored>
</foo ">" ignored>
are now all parsed as a 'foo' end tag instead of text.
Even if the extra stuff looks like attributes they will not
be reported if requested via the 'attr' or 'tokens' argspecs
for the 'end' handler.
- Parse '</:comment>' and '</ comment>' as comments unless
strict_comment is enabled. Previous versions of the parser
would report these as text. If these comments contain
quoted words prefixed by space or '=' these words can
contain '>' without terminating the comment.
- Parse '<! "<>" foo>' as comment containing ' "<>" foo'.
Previous versions of the parser would terminate the comment
at the first '>' and report the rest as text.
- Legacy comment mode: Parse with comments terminated with a
lone '>' if no '-->' is found before eof.
- Incomplete tag at eof is reported as a 'comment' instead
of 'text' unless strict_comment is enabled.
2003-04-16 Gisle Aas <gisle@ActiveState.com>
Release 3.28
When 'strict_comment' is off (which it is by default)
treat anything that matches <!...> a comment.
Should now be more efficient on threaded perls.
COMMENT should start with a capital letter.
s/netbsd.org/NetBSD.org/
Updated p5-HTML-Parser to 3.27 * Typo fixes to the documentation * Added HTML::Entities::escape_entities_numeric
Use perl5/module.mk.
buildlink1 -> buildlink2
Update to 3.26:
Avoid core dump in some cases where the callback croaks.
The perl_call_method and perl_call_sv needs G_EVAL flag
to be safe.
New parser attributes; 'attr_encoded' and 'case_sensitive'.
Contributed by Guy Albertelli II <guy@albertelli.com>.
HTML::Entities
- don't encode \r by default as suggested by Sean M. Burke.
HTML::HeadParser
- ignore empty http-equiv
- allow multiple <link> elements. Patch by
Timur I. Bakeyev <timur@gnu.org>
Avoid warnings from bleadperl on the uentities test.
Buildlinkify, in the sense that only the perl headers are found in
${PREFIX} -- everything else is pickup up from ${BUILDLINK_DIR}.
SVR4 packages have a limit of 9 chars for a package name. The automatic truncation in gensolpkg doesn't work for packages which have the same package name for the first 5-6 chars. e.g. amanda-server and amanda-client would be named amanda and amanda. Now, we add a SVR4_PKGNAME and use amacl for amanda-client and amase for amanda-server. All svr4 packages also have a vendor tag, so we have to reserve some chars for this tag, which is normaly 3 or 4 chars. Thats why we can only use 6 or 5 chars for SVR4_PKGNAME. I used 5 for all the packages, to give the vendor tag enough room. All p5-* packages and a few other packages have now a SVR4_PKGNAME.
Update to HTML-Parser-3.25.
2001-05-11 Gisle Aas <gisle@ActiveState.com>
Release 3.25
Minor tweaks for build failures on perl5.004_04, perl-5.6.0,
and for macro clash under Windows.
Improved parsing of <plaintext>... :-)
Update p5-HTML-Parser to 3.24 Changelog at http://search.cpan.org/doc/GAAS/HTML-Parser-3.24/Changes Fixes pkg/12896 by Nathan Ahlstrom <nrahlstr@winternet.com>
update to 3.19 (3.13 isn't available on CPAN archives anymore)
Changes:
If a handler triggered by flushing text at eof called the
eof method then infinite recursion occurred. Fixed.
Bug discovered by Jonathan Stowe <gellyfish@gellyfish.com>.
Allow <!doctype ...> to be parsed as declaration.
HTML::TokeParser's get_tag() method now takes multiple
tags to match. Hopefully the documentation is also a bit clearer.
#define PERL_NO_GET_CONTEXT: Should speed up things for thread
enabled versions of perl.
Quote some more entities that also happens to be perl keywords.
This avoids warnings on perl-5.004.
Unicode entities only triggered for perl-5.7.0 or higher.
The unbroken_text option now works across ignored tags.
Fix casting of pointers on some 64 bit platforms.
Fix decoding of Unicode entities. Only optionally available for
perl-5.7.0 or better.
Expose internal decode_entities() function at the Perl level.
Reindented some code.
The 3.16 release broke MULTIPLICITY builds. Fixed.
There was a C++ style comment left in util.c. Strict C
compilers do not like that kind of stuff.
Avoid the entity2char global. That should make the module
more thread safe. Patch by Gurusamy Sarathy <gsar@ActiveState.com>.
Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT.
Update p5-HTML-Parser to 3.13. Make me the maintainer. Changes from
version 3.11:
Experimental support for decoding of Unicode entities.
HTML::Entities documentation spelling.
Add dependency on p5-HTML-Tagset.
Update p5-HTML-Parser to 3.11. Changes from version 3.10:
HTML::LinkExtor and eg/hrefsub now obtain %linkElements from
the HTML::Tagset module.
Convert packages to use PERL5_PACKLIST (part 1). These were the easy ones to do, and each compiled and installed/de-installed apparently correctly. As a side effect of the dynamic PLIST, we no longer need to have separate -static and -shared PLISTs. It's now easier than ever to make a perl5 package for NetBSD :)
Update to 3.10. Too many changes to include here, please refer to the Changes file.
changed PKGNAME to p5-${DISTNAME}
Update p5-HTML-Parser to 2.25. Changes include: * Allow ":" in attribute names as a workaround for Microsoft Excel 2000 which generates such files. * Make depreciate warning if netscape_buggy_comment() method is used. The method to use in strict_comment(). * Avoid duplication of parse_file() method in HTML::HeadParser. * $p->parse_file() will not close a handle passed to it any more. If passed a filename that can't be opened it will return undef instead of raising an exception, and strings like "*STDIN" are not treated as globs any more. * HTML::LinkExtor knowns about background attribute of <tables>. Patch by Clinton Wong <clintdw@netcom.com> * HTML::TokeParser will parse large inline strings much faster now. The string holding the document must not be changed during parsing. * Documentation updates.
Completely replace "MASTER_SITE_SUBDIR" and "PATCH_SITE_SUBDIR" with variable substituition of "MASTER_SITES" and "PATCH_SITES".
HTML::Parse for parsing HTML (SGML). Used to be part of libwww-perl.
Initial revision