Tables

Test elements

This is the caption
TH in THead TD in THead TD in THead
TH in TBODY 1 TD in TBODY 1 TD in TBODY 1
TD in TBODY 1 TH in TBODY 1 TD in TBODY 1
TH in TBODY 2 TD in TBODY 2 TD in TBODY 2
TD in TFoot TH in TFoot TD in TFoot

x is the table

Test scripts

frames

Test x.frame = 'void'
Test x.frame = 'above'
Test x.frame = 'below'
Test x.frame = 'hsides'
Test x.frame = 'vsides'
Test x.frame = 'lhs'
Test x.frame = 'rhs'
Test x.frame = 'box'
Test x.frame = 'border'

rules

Test x.rules = 'none'
Test x.rules = 'groups'
Test x.rules = 'rows'
Test x.rules = 'cols'
Test x.rules = 'all'

cellSpacing

Test x.cellSpacing = 10
Test x.cellSpacing = 0

cellPadding

The THs have no CSS padding set. Therefore this tests should only influence the THs, since CSS outranks the cellPadding property.

Test x.cellPadding = 10
Test x.cellPadding = 0
Test alert (x.cellPadding)