[HtmlUnit] [ htmlunit-Bugs-2884462 ] thead not at the top of a table goes missing

View: New views
1 Messages — Rating Filter:   Alert me  

[HtmlUnit] [ htmlunit-Bugs-2884462 ] thead not at the top of a table goes missing

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2884462, was opened at 2009-10-23 08:33
Message generated for change (Settings changed) made by asashour
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=2884462&group_id=47038

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
>Group: Latest code in SVN
Status: Open
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: dubium (dubium)
Assigned to: Ahmed Ashour (asashour)
Summary: thead not at the top of a table goes missing

Initial Comment:
The attached code will produce the following output on the following two simple html tables. Note in the second table, the "6|Banana" row is missing.


---------------------------

6|Banana|
5|Bicycle|
3|John|

5|Bicycle|
3|John|



----------

<html><head><body>
    <table id="table1">

            <thead>
            <tr>
                <td>6</td>
                <td>Banana</td>
            </tr>
            </thead>

            <tr>
                <td>5</td>
                <td>Bicycle</td>
            </tr>

            <tr>
                <td>3</td>
                <td>John</td>
            </tr>

    </table>


    <table id="table2">

            <tr>
                <td>5</td>
                <td>Bicycle</td>
            </tr>

            <thead>
            <tr>
                <td>6</td>
                <td>Banana</td>
            </tr>
            </thead>

            <tr>
                <td>3</td>
                <td>John</td>
            </tr>

    </table>
</body></html>

----------------------------------------------------------------------

>Comment By: Ahmed Ashour (asashour)
Date: 2009-11-07 15:01

Message:
Thanks for the example, initial test case added in
HtmlTable2Test#two_theads().

To fix this, NekoHtml should apply the patch in
https://sourceforge.net/tracker/?func=detail&aid=2893796&group_id=195122&atid=952180

Then HtmlUnit .asText() should handle the first <thead> and <tfoot> as
header and footer, and treat all other elements as if they are in tbody.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=2884462&group_id=47038

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
HtmlUnit-develop mailing list
HtmlUnit-develop@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop