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 10608 - HTML table: Incorrect validation error description
Summary: HTML table: Incorrect validation error description
Status: RESOLVED NEEDSINFO
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 major
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-12 10:47 UTC by venn85
Modified: 2015-08-23 07:07 UTC (History)
0 users

See Also:


Attachments

Description venn85 2010-09-12 10:47:39 UTC
According to w3c, the <td> tags must be always located inside <tr> tag.
An overlapping <td> outside <tr> will always invalidate a documents.

However, when you validate a page with that kind of error, W3C validator will tell you have missing <table> start tag instead. Regardless of the presence of the <table> tag.

To be exact, w3c will generate Error 66,
"document type does not allow element "tr" here; assuming MISSING "table" start-tag"

and

Error 70
"70: end tag for table omitted, but OMITTAG NO was specified"

This could be confusing to web developer/designer relying on W3C validator to produce standard compliant webpage.

Perhaps, the more proper error for a <td> outside <tr> is Error 73 (end tag for X which is not finished). Error 73 also has clear explanation regarding usage of element which requires a child element.

I apologise if I submit this e-mail to the wrong component, but I do believe this issue needs to be brought up.
Comment 1 Michael[tm] Smith 2010-11-11 18:15:07 UTC
please provide a test case