[Webkit-unassigned] [Bug 38664] Web Inspector: add a "table" method to console, to allow output of tabular data

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 1 21:57:11 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38664





--- Comment #32 from Patrick Mueller <pmuellr at yahoo.com>  2010-06-01 21:57:09 PST ---
(In reply to comment #15)
> - Not sure if customizing sort-type is interesting for anyone.

Trying to figure out what the sort property of the elements of the column parameter mean, when the values are "ascending" or "descending".  I guess the implication is that the data is sorted based on all the columns which indicate a sort parameter.   And then if the column labels were actually sort buttons, like many tabular controls support, do we just throw all that sort information out the window?

It would be simpler to not have sort information in the columns parameter elements, so we don't have to sort the data at all.  Unless specifically requested by pressing the column label/sort button.

Given the use case of "dump some data during a console session", it's unlikely you're going to want to be typing out sort specifications, and sorting by pressing column labels is probably good enough.

Given the use case of "elaborate output generated by a script", the script can arrange to do the original sort of the data.  Note that if we always prefix a row with a row index (except in the case of data == object), then the original sort order can be provided back to the user with a column label/sort button over that row index.

Note the quote from comment #15 above is actually about sort-type: presumably "alpha" or "numeric"?  And no one has mentioned it, so I'm happy to live without it either.

Summary: ditch the "sort" property.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list