Skip to content

Commit

Permalink
Look for alt/title on span elements too.
Browse files Browse the repository at this point in the history
Should fix issue #68.
  • Loading branch information
Ryan Jacobs committed Feb 4, 2015
1 parent e441509 commit bb1c8dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tablesort",
"description": "A sorting component for HTML tables",
"version": "2.2.3",
"version": "2.2.4",
"author": "tristen <@fallsemo>",
"ender": "./ender.js",
"main": "./src/tablesort.js",
Expand Down
2 changes: 1 addition & 1 deletion src/tablesort.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
switch (cs[i].nodeType) {
case 1:
// ELEMENT_NODE
if (cs[i].tagName === 'IMG') {
if (cs[i].tagName === 'IMG' || cs[i].tagName === 'SPAN') {
str += (cs[i].alt || cs[i].title || "");
} else {
str += that.getInnerText(cs[i]);
Expand Down
4 changes: 2 additions & 2 deletions tablesort.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bb1c8dd

Please sign in to comment.