[wxPython] wxHTML and table rendering

[win2k, python2.0, wxPython 2.2.2]

Howdy,

So I've noticed that the wxHtml control doesn't render tables properly when cells specify colspan. Here's the HTML for a simple table demonstrating the problem:

<html><body>
<table border=1>
<tr><td></td><th colspan=5>Foo bar baz bletch</th></tr>
<tr><th rowspan=4>Bar</th></tr>
<tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr>
</table>
</body></html>

In wxPython 2.2.2 (and wxWindows 2.2.6), the rowspan'ed cell is rendered correctly, but the colspan 'ed cell appears atop the cells in the next row down. This is most unfortunate. :slight_smile:

Before I go mucking about in the C++ to try and figure out what's going on, has anyone seen this before or heard of a fix?

Thanks,
-greg

···

----
greg Landrum (greglandrum@earthlink.net)
Software Carpenter/Computational Chemist

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Grr... Eudora stripped out my HTML... BAD EUDORA

[win2k, python2.0, wxPython 2.2.2]

Howdy,

So I've noticed that the wxHtml control doesn't render tables properly when cells specify colspan. Here's the HTML for a simple table demonstrating the problem:

<table border=1>
<tr><td></td><th colspan=5>Foo bar baz bletch</th></tr>
<tr><th rowspan=4>Bar</th></tr>
<tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr>
</table>

In wxPython 2.2.2 (and wxWindows 2.2.6), the rowspan'ed cell is rendered
correctly, but the colspan 'ed cell appears atop the cells in the next row
down. This is most unfortunate. :slight_smile:

Before I go mucking about in the C++ to try and figure out what's going on,
has anyone seen this before or heard of a fix?

I've done some more experimenting and discovered that the problem only occurs if the colspan'ed cell is in the first row of the table, so this:

<table border=1>
<tr><th rowspan=5>Bar</th></tr>
<tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr>
<tr><th colspan=5>Foo bar baz bletch</th></tr>
<tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr>
</table>

renders fine.

-greg

···

At 10:38 AM 3/15/2001, Greg Landrum wrote:

----
greg Landrum (greglandrum@earthlink.net)
Software Carpenter/Computational Chemist

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users