Subject: | When I use replace_with_content the structure of the html seems to be destroyed |
Date: | Fri, 7 Jul 2006 11:18:55 +1000 |
To: | andy [...] petdance.com |
From: | Gerwood Stewart <gstewar8 [...] une.edu.au> |
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"> <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"> <tr>
</tr>