Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#2147 closed defect (wontfix)

Sorting HTML fields in Filtering Table

Reported by: guest Owned by: Tom Trenka
Priority: high Milestone: 0.9
Component: Dijit Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description

When you sort information in an html field, it sorts alphabetically on the entire contents of the field - including the html tags. So, something like <a href="/forums/">Cindy</a> appears before something like <a href="/gallery/">Adam</a>

I think that by default, it should strip html tags before the sort is performed. I hacked in a simple html stripping routine and call it on any cell that is markup before the sort and now my html sorts by the value inside the tags and not the tags.

Change History (7)

comment:1 Changed 13 years ago by Tom Trenka

Owner: changed from anonymous to Tom Trenka

comment:2 Changed 13 years ago by Tom Trenka

I'm fairly certain this is actually a bug with dojo.html.renderedTextContent, but this has been noted before.

comment:3 Changed 13 years ago by dylan

Milestone: 0.9

comment:4 Changed 13 years ago by Tom Trenka

Component: GeneralWidgets

comment:5 Changed 13 years ago by bill

Component: WidgetsDijit

This will all be redone for the new Table widget so presumably this won't be an issue anymore, but I'll leave the bug open until that widget is completed, as a reminder to check this issue.

comment:6 Changed 13 years ago by Tom Trenka

FilteringTable? is not being ported to either Dijit or DojoX, so I'm closing the bug.

comment:7 Changed 13 years ago by Tom Trenka

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.