W3C home > Mailing lists > Public > public-html@w3.org > April 2007

Re: <table type="rowsortable">

From: Bruce Boughton <bruce@bruceboughton.me.uk>
Date: Wed, 04 Apr 2007 23:26:02 +0100
Message-ID: <461425FA.8020207@bruceboughton.me.uk>
To: public-html@w3.org
CC: Jeff Schiller <codedread@gmail.com>

Jeff Schiller wrote:
> On 4/4/07, Bruce Boughton <bruce@bruceboughton.me.uk> wrote:
>>
>>  So, while it may be beyond the scope of the UA to provide decent 
>> sorting
>> for every conceivable data type, it *may* not be beyond the scope of 
>> HTML to
>> define a protocol for delegating this sorting to a client side script.
>>
>>  Bruce Boughton
>>
>
> How far is this from just using standard onclick handlers on the <th> 
> elements?
In the simple case, not very far.  However, to properly implement 
sortable tables, you would not simply sort by a column when its header 
was clicked;  you'd provide indications in the UI of which column the 
table is currently sorted by and in which direction 
(ascending/descending).  I'm sure there are more complex sorting models 
too, such as sorting by multiple columns.  If we were going to include 
this in the HTML spec, I would expect the UA to take care of this UI 
stuff for datagrids (or sortable tables) not the web page author.  
Otherwise, you're right, there's not a lot of point.  It depends how far 
we take this.

Bruce
Received on Wednesday, 4 April 2007 22:26:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:15:52 GMT