Download & Extend

D6 Backport: empty tbody fails validation

Project:Drupal core
Version:5.x-dev
Component:theme system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Simply to fix.

AttachmentSizeStatusTest resultOperations
empty_tbody.patch842 bytesIgnored: Check issue status.NoneNone

Comments

#1

@chx

Tested with:

  • Drupal-5
  • Apache 2.2.4
  • PHP 5.2.4

Your patch worked to remove the empty tbody as advertised. However, if there are no rows in the table (in Calendar module's Prev/Next bar for example), validation still fails. This is because HTML requires that anything that has a thead tags must also have tbody tags. I updated your patch to include a ternary operator to check if there are rows, and if so, add the thead tags.

AttachmentSizeStatusTest resultOperations
theme_inc_tbody.patch1.45 KBIgnored: Check issue status.NoneNone

#2

Version:5.x-dev» 6.x-dev

Looks like the same issue is in Head. Updating the version number to 6.x-dev and adding a patch for Head.

AttachmentSizeStatusTest resultOperations
theme_inc_head_tbody.patch1.48 KBIgnored: Check issue status.NoneNone

#3

Status:needs review» needs work

- We don't use /* and */ multiline comments inside code.
- We do use spaces around ? in ternary operators.

Apart from this, this patch obviously only needs some testing, it looks good from here.

#4

Status:needs work» needs review

Thanks for the review Gábor! Converted mulitline comments into single line // comments. Added the proper spacing to the ternary operator.

AttachmentSizeStatusTest resultOperations
theme_inc_head_tbody2.patch1.48 KBIgnored: Check issue status.NoneNone

#5

Status:needs review» reviewed & tested by the community

ejhildreth, you have to diff from the root install. Here's a proper patch.

The closing /tbody was misplaced so that was corrected. Everything else is pretty much the same from your previous patch.

Tested and validates.

AttachmentSizeStatusTest resultOperations
theme_inc_head_tbody_3.patch1.5 KBIgnored: Check issue status.NoneNone

#6

Status:reviewed & tested by the community» fixed

Thanks, committed.

#7

Status:fixed» closed (fixed)

#8

Version:6.x-dev» 5.x-dev
Status:closed (fixed)» needs review

Backporting: This bug is still in DRUPAL-5-dev

AttachmentSizeStatusTest resultOperations
theme_inc_tbody_DRUPAL-5-dev.patch1.48 KBIgnored: Check issue status.NoneNone

#9

Title:empty tbody fails validation» D6 Backport: empty tbody fails validation

#10

Status:needs review» fixed

Committed to 5.x.

#11

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.