[whatwg] table 'frames' attribute

fantasai fantasai.lists at inkedblade.net
Mon May 4 14:52:21 PDT 2009


Section 10.2.6, i.e. The XHTML syntax: Rendering: Punctuation and decoration
contains some style rules for handling the [rules] and [frames] attributes
of the <table> element. I haven't reviewed it all in detail but this part

   table[frames=void] > tr > td, table[frames=void] > tr > th,
   table[frames=above] > tr > td, table[frames=above] > tr > th,
   table[frames=below] > tr > td, table[frames=below] > tr > th,
   ...
   table[frames=border] > tfoot > tr > td, table[frames=border] > tfoot > tr > th {
     border-style: solid;
   }

is certainly wrong both per spec (HTML4) and implementation. It should be
removed. Also, you probably want to track Mozilla bug 43178 for this section
   https://bugzilla.mozilla.org/show_bug.cgi?id=43178
since we are actually planning to implement these attributes with CSS rules
unless we hit performance problems with that approach.

There's a collection of tests for these attributes here:
   http://fantasai.inkedblade.net/markup/tests/table-frame-rules/
I should probably expand it to include tests for the empty string and junk
valuse, but that's what it is for now.

~fantasai



More information about the whatwg mailing list