Skip Menu |
 

This queue is for tickets about the HTML-Tree CPAN distribution.

Report information
The Basics
Id: 20331
Status: rejected
Priority: 0/
Queue: HTML-Tree

People
Owner: Nobody in particular
Requestors: gstewar8 [...] une.edu.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



X-Scanned-BY: AMaViS-ng at bestpractical
Resent-Date: Thu, 6 Jul 2006 20:32:49 -0500
MIME-Version: 1.0 (Apple Message framework v752.2)
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00
X-Mailer: Apple Mail (2.752.2)
Resent-Message-Id: <A6E933A0-8B6E-4C65-97A3-D838EF5D4BA2 [...] une.edu.au>
Received-SPF: unknown (x1.develooper.com: error in processing during lookup of andy [...] petdance.com)
content-type: text/plain; charset="utf-8"; delsp="yes"; format="flowed"
Resent-To: bug-html-tree [...] rt.cpan.org
Received: from localhost (diesel.bestpractical.com [127.0.0.1]) by diesel.bestpractical.com (Postfix) with ESMTP id 319604D8245 for <cpan-bug+html-tree [...] diesel.bestpractical.com>; Thu, 6 Jul 2006 21:33:25 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id A65364D8070 for <bug-html-tree [...] rt.cpan.org>; Thu, 6 Jul 2006 21:33:24 -0400 (EDT)
Received: (qmail 3338 invoked by alias); 7 Jul 2006 01:33:24 -0000
Received: from mail8.sea5.speakeasy.net (HELO mail8.sea5.speakeasy.net) (69.17.117.10) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 06 Jul 2006 18:33:09 -0700
Received: (qmail 7974 invoked from network); 7 Jul 2006 01:33:03 -0000
Received: from rocket.petdance.com (HELO [192.168.2.6]) (petdance [...] [64.81.227.163]) (envelope-sender <andy [...] petdance.com>) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with RC4-SHA encrypted SMTP for <bug-html-tree [...] rt.cpan.org>; 7 Jul 2006 01:33:03 -0000
Delivered-To: cpan-bug+html-tree [...] diesel.bestpractical.com
Resent-From: Andy Lester <andy [...] petdance.com>
Subject: When I use replace_with_content the structure of the html seems to be destroyed
Return-Path: <andy [...] petdance.com>
X-Original-To: cpan-bug+html-tree [...] diesel.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Fri, 7 Jul 2006 11:18:55 +1000
Message-Id: <F6A4C3F3-2DCD-41A3-AF93-2FD7690CC2DA [...] une.edu.au>
To: andy [...] petdance.com
Content-Transfer-Encoding: 7bit
From: Gerwood Stewart <gstewar8 [...] une.edu.au>
X-RT-Original-Encoding: US-ASCII
Content-Length: 2093
Andy I have been playing with HTML::Tree or more specifically HTML::Element. I have found that when I use replace_with_content the structure of the html seems to be destroy. Below is an example of the resulting code. I have several questions. Did you know about this? If so is there a way around it or should I be using something other that replace_with_content()? I am happy to look through the code as see if I can find the reason myself, but I thought you may already know about this. (It's a very useful module by the way) Thanks Gerwood Stewart <div class="Section1"> </div> <table border="1" cellpadding="0" cellspacing="0" style="border- collapse:collapse; border:none"> </table> <tr> </tr> <td style="width:130.0pt;border-top:solid teal 2.25pt; border-left:solid teal 2.25pt;border-bottom:none;border-right:none; background:#E5E5E5;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="130"> </td> <p class="cgBodyText"><img alt="CGTable.Metadata" height="30" id="_x0000_i1025" src="topicnotesguygenielinksremoved1_files/ image001.jpg" width="103" /><td style="width:294.0pt;border-top:solid teal 2.25pt; border-left:none;border-bottom:none;border-right:solid teal 2.25pt; background:#E5E5E5;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="294"> </td> <p class="cgBodyText">&nbsp;<tr> </tr> <td style="width:130.0pt;border:none;border-left:solid teal 2.25pt; background:#E5E5E5;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="130"> </td> <p class="cgBodyText">Title<td style="width: 294.0pt;border:none;border-right:solid teal 2.25pt; padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="294"> </td> <p class="cgBodyText">GEPL 316 - Topic Notes<tr> </tr> <td style="width:130.0pt;border:none;border-left:solid teal 2.25pt; background:#E5E5E5;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="130"> </td> <p class="cgBodyText">Description<td style="width: 294.0pt;border:none;border-right:solid teal 2.25pt; padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="294"> </td> <p class="cgBodyText">&nbsp;<tr> </tr>
MIME-Version: 1.0
In-Reply-To: <F6A4C3F3-2DCD-41A3-AF93-2FD7690CC2DA [...] une.edu.au>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-25590-1163298785-528.20331-0-0 [...] rt.cpan.org>
References: <F6A4C3F3-2DCD-41A3-AF93-2FD7690CC2DA [...] une.edu.au>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 379
Download (untitled) / with headers
text/plain 379b
HTML::Tree and friends is not guaranteed to produce the same HTML output for a given input. As part of the replace_with_content operation, the HTML::Parser's interpretation of the HTML is used to produce the output. This isn't a "bug" in the sense that it's not incorrect behavior, and HTML::Tree will probably never guarantee to duplicate the exact same HTML out that came in.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.