This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 231849 - Bad validation result for table w/ missing tbody
Summary: Bad validation result for table w/ missing tbody
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P4 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-26 13:58 UTC by Marek Fukala
Modified: 2014-10-06 13:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2013-06-26 13:58:36 UTC
Extracted from issue 231707:

As for the issue with ""XHTML element "tr" not allowed as child of
XHTML element "table" in this
context."": I've at least isolated the test case (code below). If the code
contains thead element but not tbody, the validator complains. If one adds the
tbody or remove thead, it works fine. I need to investigate more on that.

------------------------------
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head> 
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>test</title>
    </head>
    <body>
        <table>
            <thead>
                <tr>
                    <th>Q.Name</th>
                </tr> 
            </thead>
            <!--<tbody>-->
            <tr> 
                <td>a.b.c</td>
            </tr>
            <!--</tbody>-->
        </table>
    </body>

</html>
[reply] [-] Comment 10