MIME-Version: | 1.0 |
X-Spam-Status: | No, score=-2.698 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham |
X-Spam-Flag: | NO |
Content-Type: | multipart/alternative; boundary="001a114c1846c6cd0e052cbc9e32" |
Message-ID: | <CAJMC+NvwkG7Vim12tNVWC_RtWOu9+6_-TFCq9M4GfdPSm_J_SA [...] mail.gmail.com> |
X-Received: | by 10.28.224.84 with SMTP id x81mr2189402wmg.62.1456563512853; Sat, 27 Feb 2016 00:58:32 -0800 (PST) |
X-Virus-Scanned: | Debian amavisd-new at bestpractical.com |
X-Spam-Score: | -2.698 |
Received: | from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 93204240387 for <cpan-bug+XML-LibXML [...] hipster.bestpractical.com>; Sat, 27 Feb 2016 03:58:40 -0500 (EST) |
Received: | from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UZLcrfXC+jvU for <cpan-bug+XML-LibXML [...] hipster.bestpractical.com>; Sat, 27 Feb 2016 03:58:39 -0500 (EST) |
Received: | from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 3C1DD24009C for <bug-XML-LibXML [...] rt.cpan.org>; Sat, 27 Feb 2016 03:58:39 -0500 (EST) |
Received: | (qmail 17713 invoked by alias); 27 Feb 2016 08:58:38 -0000 |
Received: | from mail-wm0-f54.google.com (HELO mail-wm0-f54.google.com) (74.125.82.54) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Sat, 27 Feb 2016 00:58:37 -0800 |
Received: | by mail-wm0-f54.google.com with SMTP id g62so97132175wme.0 for <bug-XML-LibXML [...] rt.cpan.org>; Sat, 27 Feb 2016 00:58:36 -0800 (PST) |
Received: | by 10.27.80.147 with HTTP; Sat, 27 Feb 2016 00:58:32 -0800 (PST) |
Authentication-Results: | hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com |
Delivered-To: | cpan-bug+XML-LibXML [...] hipster.bestpractical.com |
Subject: | The attributes method of an XML::LibXML::Text node in list context wrongly returns (undef) |
Return-Path: | <the.rob.dixon [...] gmail.com> |
X-RT-Mail-Extension: | xml-libxml |
X-Original-To: | cpan-bug+XML-LibXML [...] hipster.bestpractical.com |
X-Spam-Check-BY: | la.mx.develooper.com |
Dkim-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=DkfWMKZpMXrj9BU3JLfyGksM+l/tQ6z0VfMbxdf5LT0=; b=iibAK6JVW/EA9sPuBCOtkvXAen189CPtVaAeFggOQ7fzOc+IsnmRRgjXN/WzMCa1OC 4XlIg7vUXvI1k6RVGBfjp5RXFgP5falD9Neh5P5698ZUl/chVGgmWFv5c2OdHA2bcn6X llfLXrqnt5fYa0uJcxmOu0SCkeBisqigvENP0ZP1fS8YWPZyWZrxYfwVKVGFfFpxfH+3 Kz3Z75psI5rcdj+whZ+LnqpvlIk0vM2pJgOldvBNakxbCCdMt5HW60+5igSW11gfI7oL sC0Inats1GdL+Xz+VfcU4btuHHHGtwKRbNHpbkqnBEZ4YlxZt2D1cm4eR99Vrrg/HODP wtHg== |
X-Google-Dkim-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=DkfWMKZpMXrj9BU3JLfyGksM+l/tQ6z0VfMbxdf5LT0=; b=P+0XlEQbVo9F78Mf2FtuEdak5fp0+n3kCYFtOxSX5eFc2V5JGDRLv7roS6AU41Lsxo PgujVEhjKkc5Eo4dJILu+PF7v3nzYAQcPIsXP8Dz4ZRXEoUowLennJdnozqrngqClthY AekH36bF5usPSDM08715aFN1xQi3UR+5SVIFfg9bFp3O5ZmYCPE92Z56Bb0JHf2aF2rV HHNYUtdBiE0wpROnTHwMt9Og9SvtrsPCD7x+fCWO8Du9aKs+CFbuz9guks2OiIdBEjJJ WwQi5S4INgF5dziCHhB2Ke/s6oz3brb/XeAl1ofjW1tfTxG4pQ8Qg7BkYZ9qZ3iqMNRt JgGw== |
Date: | Sat, 27 Feb 2016 08:58:32 +0000 |
X-Spam-Level: | |
To: | bug-XML-LibXML [...] rt.cpan.org |
From: | Rob Dixon <the.rob.dixon [...] gmail.com> |
X-GM-Message-State: | AD7BkJLIbT1jr1iw68CbeAld+bdf6DEhklDqTIda5bIPdSpF77ua/K9ED/gpQ49NJk7+IvDAKc4lwTUxVoXU0w== |
X-RT-Interface: | |
Content-Length: | 0 |
content-type: | text/plain; charset="utf-8" |
X-RT-Original-Encoding: | utf-8 |
Content-Length: | 337 |
A call like
my @attr = $node->attributes
will set `@attr` to contain a single element with the value `undef`. This
should be an empty list.
The fix is simple. The method, on line 1778 of LibXML.pm, should be changed
from
sub attributes { return undef; }
to
sub attributes { return }
Thanks,
Rob Dixon
Norfolk
England
content-type: | text/html; charset="utf-8" |
Content-Transfer-Encoding: | quoted-printable |
X-RT-Original-Encoding: | utf-8 |
Content-Length: | 2908 |