r55532 - in /trunk/libhtml-parser-perl: Changes META.yml Parser.pm debian/changelog hparser.c lib/HTML/Entities.pm lib/HTML/HeadParser.pm t/entities.t

carnil-guest at users.alioth.debian.org carnil-guest at users.alioth.debian.org
Tue Apr 6 19:05:39 UTC 2010


Author: carnil-guest
Date: Tue Apr  6 19:04:06 2010
New Revision: 55532

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=55532
Log:
New upstream release

Modified:
    trunk/libhtml-parser-perl/Changes
    trunk/libhtml-parser-perl/META.yml
    trunk/libhtml-parser-perl/Parser.pm
    trunk/libhtml-parser-perl/debian/changelog
    trunk/libhtml-parser-perl/hparser.c
    trunk/libhtml-parser-perl/lib/HTML/Entities.pm
    trunk/libhtml-parser-perl/lib/HTML/HeadParser.pm
    trunk/libhtml-parser-perl/t/entities.t

Modified: trunk/libhtml-parser-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/Changes?rev=55532&op=diff
==============================================================================
--- trunk/libhtml-parser-perl/Changes (original)
+++ trunk/libhtml-parser-perl/Changes Tue Apr  6 19:04:06 2010
@@ -1,3 +1,16 @@
+_______________________________________________________________________________
+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.
+
+
 _______________________________________________________________________________
 2009-10-25  Release 3.64
 

Modified: trunk/libhtml-parser-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/META.yml?rev=55532&op=diff
==============================================================================
--- trunk/libhtml-parser-perl/META.yml (original)
+++ trunk/libhtml-parser-perl/META.yml Tue Apr  6 19:04:06 2010
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               HTML-Parser
-version:            3.64
+version:            3.65
 abstract:           HTML parser class
 author:
     - Gisle Aas <gisle at activestate.com>
@@ -22,7 +22,7 @@
     directory:
         - t
         - inc
-generated_by:       ExtUtils::MakeMaker version 6.55_02
+generated_by:       ExtUtils::MakeMaker version 6.56
 meta-spec:
     url:      http://module-build.sourceforge.net/META-spec-v1.4.html
     version:  1.4

Modified: trunk/libhtml-parser-perl/Parser.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/Parser.pm?rev=55532&op=diff
==============================================================================
--- trunk/libhtml-parser-perl/Parser.pm (original)
+++ trunk/libhtml-parser-perl/Parser.pm Tue Apr  6 19:04:06 2010
@@ -9,7 +9,7 @@
 use strict;
 use vars qw($VERSION @ISA);
 
-$VERSION = "3.64";
+$VERSION = "3.65";
 
 require HTML::Entities;
 
@@ -891,7 +891,7 @@
 Example:
 
   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-  "http://www.w3.org/TR/html40/strict.dtd">
+      "http://www.w3.org/TR/html4/strict.dtd">
 
 DTDs inside <!DOCTYPE ...> will confuse HTML::Parser.
 
@@ -954,7 +954,7 @@
 
 =head2 Unicode
 
-The C<HTML::Parser> can parse Unicode strings when running under
+C<HTML::Parser> can parse Unicode strings when running under
 perl-5.8 or better.  If Unicode is passed to $p->parse() then chunks
 of Unicode will be reported to the handlers.  The offset and length
 argspecs will also report their position in terms of characters.
@@ -1224,10 +1224,10 @@
 
 L<HTML::TreeBuilder> (part of the I<HTML-Tree> distribution)
 
-http://www.w3.org/TR/html4
+L<http://www.w3.org/TR/html4/>
 
 More information about marked sections and processing instructions may
-be found at C<http://www.sgml.u-net.com/book/sgml-8.htm>.
+be found at L<http://www.is-thought.co.uk/book/sgml-8.htm>.
 
 =head1 COPYRIGHT
 

Modified: trunk/libhtml-parser-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/debian/changelog?rev=55532&op=diff
==============================================================================
--- trunk/libhtml-parser-perl/debian/changelog (original)
+++ trunk/libhtml-parser-perl/debian/changelog Tue Apr  6 19:04:06 2010
@@ -1,3 +1,9 @@
+libhtml-parser-perl (3.65-1) UNRELEASED; urgency=low
+
+  * New upstream release
+
+ -- Salvatore Bonaccorso <salvatore.bonaccorso at gmail.com>  Tue, 06 Apr 2010 21:02:45 +0200
+
 libhtml-parser-perl (3.64-1) unstable; urgency=low
 
   [ Jonathan Yu ]

Modified: trunk/libhtml-parser-perl/hparser.c
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/hparser.c?rev=55532&op=diff
==============================================================================
--- trunk/libhtml-parser-perl/hparser.c (original)
+++ trunk/libhtml-parser-perl/hparser.c Tue Apr  6 19:04:06 2010
@@ -1847,7 +1847,7 @@
 		warn("Parsing of undecoded UTF-8 will give garbage when decoding entities");
 	    }
 	    if (utf8 && len >= 2 && strnEQ(beg, "\xFF\xFE", 2)) {
-		warn("Parsing string decoded with wrong endianess");
+		warn("Parsing string decoded with wrong endianness");
 	    }
 #endif
 	    if (!utf8 && len >= 4 &&

Modified: trunk/libhtml-parser-perl/lib/HTML/Entities.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/lib/HTML/Entities.pm?rev=55532&op=diff
==============================================================================
--- trunk/libhtml-parser-perl/lib/HTML/Entities.pm (original)
+++ trunk/libhtml-parser-perl/lib/HTML/Entities.pm Tue Apr  6 19:04:06 2010
@@ -434,23 +434,6 @@
 
 my %subst;  # compiled encoding regexps
 
-sub decode_entities_old
-{
-    my $array;
-    if (defined wantarray) {
-	$array = [@_]; # copy
-    } else {
-	$array = \@_;  # modify in-place
-    }
-    my $c;
-    for (@$array) {
-	s/(&\#(\d+);?)/$2 < 256 ? chr($2) : $1/eg;
-	s/(&\#[xX]([0-9a-fA-F]+);?)/$c = hex($2); $c < 256 ? chr($c) : $1/eg;
-	s/(&(\w+);?)/$entity2char{$2} || $1/eg;
-    }
-    wantarray ? @$array : $array->[0];
-}
-
 sub encode_entities
 {
     return undef unless defined $_[0];

Modified: trunk/libhtml-parser-perl/lib/HTML/HeadParser.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/lib/HTML/HeadParser.pm?rev=55532&op=diff
==============================================================================
--- trunk/libhtml-parser-perl/lib/HTML/HeadParser.pm (original)
+++ trunk/libhtml-parser-perl/lib/HTML/HeadParser.pm Tue Apr  6 19:04:06 2010
@@ -178,7 +178,10 @@
 # <!ENTITY % head.content "TITLE & BASE?">
 # <!ELEMENT HEAD O O (%head.content;) +(%head.misc;)>
 #
-# Added in HTML 5 as of WD-html5-20090423: noscript, command
+# From HTML 5 as of WD-html5-20090825:
+#
+# One or more elements of metadata content, [...]
+# => base, command, link, meta, noscript, script, style, title
 
 sub start
 {

Modified: trunk/libhtml-parser-perl/t/entities.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/t/entities.t?rev=55532&op=diff
==============================================================================
--- trunk/libhtml-parser-perl/t/entities.t (original)
+++ trunk/libhtml-parser-perl/t/entities.t Tue Apr  6 19:04:06 2010
@@ -1,6 +1,6 @@
 use HTML::Entities qw(decode_entities encode_entities encode_entities_numeric);
 
-use Test::More tests => 17;
+use Test::More tests => 18;
 
 $a = "V&aring;re norske tegn b&oslash;r &#230res";
 
@@ -73,6 +73,8 @@
 
 is(decode_entities("Attention Home&#959&#969n&#1257rs...1&#1109t T&#1110&#1084e E&#957&#1257&#1075"),
   "Attention Home\x{3BF}\x{3C9}n\x{4E9}rs...1\x{455}t T\x{456}\x{43C}e E\x{3BD}\x{4E9}\x{433}");
+is(decode_entities("{&#38;amp;&#x26;amp;&amp; also &#x42f;&#339;}"),
+    "{&amp;&amp;& also \x{42F}\x{153}}");
 
 __END__
 # Quoted from rfc1866.txt




More information about the Pkg-perl-cvs-commits mailing list