This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21313 - Validator doesn't complain about missing closing </tr> and </thead> tag.
Summary: Validator doesn't complain about missing closing </tr> and </thead> tag.
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-16 23:20 UTC by Tobias Markus (:Tobbi)
Modified: 2013-03-17 19:07 UTC (History)
0 users

See Also:


Attachments
testcase (4.07 KB, text/html)
2013-03-16 23:20 UTC, Tobias Markus (:Tobbi)
Details

Description Tobias Markus (:Tobbi) 2013-03-16 23:20:08 UTC
Created attachment 1340 [details]
testcase

See the attached file at lines 71 and 73. You can see that the TR tag and the THEAD tags don't close. Still the validator says the document is valid HTML.

Snippet:
<table class="table table-hover">
  <thead>
    <tr><th colspan=3></th></tr>
    <tr>
      <th><abbr title="Nominative">Nom.</abbr></th>
      <th><abbr title="Accusative">Acc.</abbr></th>
      <th><abbr title="Dative">Dat.</abbr></th>
</table>
Comment 1 Ville Skyttä 2013-03-17 19:07:59 UTC
The end tags of THEAD and TR are optional.

http://www.w3.org/html/wg/drafts/html/master/syntax.html#optional-tags
http://www.w3.org/TR/html401/index/elements.html