Re: [xml] extra endtag problem



On Wed, Mar 28, 2001 at 05:11:38PM +0200, Jonas Borgström wrote:
Hi,

While making a testcase of http://www.collab.net/ to see why it didn't layout
correctly in gtkhtml2 I found this code:

<table border="4">
 <tr>
  <td>Cell 1 in table 1</td>
  <td>
   <table border="4">
    <tr>
     <td>Cell 1 in table 2 which is in cell 2 och table 1</td></td> <!-- One tag to much -->
    </tr>
   </table>
  </td>
  <td>cell 3 in table 1</td>
 </tr>
</table>

As you can see there is an extra "</td>" tag on line 9. You might think
gnome-xml just ignore it and continue. No gnome-xml tries to fix it but the
result isn't even close to the original:

  Okay this bug is also fixed in CVS:

orchis:~/XML -> cat collab.html
<table border="4">
 <tr>
  <td>Cell 1 in table 1</td>
  <td>
   <table border="4">
    <tr>
     <td>Cell 1 in table 2 which is in cell 2 och table 1</td></td> <!-- One tag to much -->
    </tr>
   </table>
  </td>
  <td>cell 3 in table 1</td>
 </tr>
</table>
orchis:~/XML -> ./testHTML collab.html 
collab.html:7: error: Opening and ending tag mismatch: td and tr
     <td>Cell 1 in table 2 which is in cell 2 och table 1</td></td> <!-- One ta
                                                                   ^
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd";>
<html><body><table border="4"><tr>
<td>Cell 1 in table 1</td>
<td><table border="4"><tr>
<td>Cell 1 in table 2 which is in cell 2 och table 1</td>
<!-- One tag to much -->
</tr></table></td>
<td>cell 3 in table 1</td>
</tr></table></body></html>
orchis:~/XML -> 

  thanks for the report,

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]