Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -999,7 +999,8 @@ |
1000 | 1000 | function ts_getInnerText(el) { |
1001 | 1001 | if (typeof el == "string") return el; |
1002 | 1002 | if (typeof el == "undefined") { return el }; |
1003 | | - if (el.innerText) return el.innerText; // Not needed but it is faster |
| 1003 | + if (el.textContent) return el.textContent; // not needed but it is faster |
| 1004 | + if (el.innerText) return el.innerText; // IE doesn't have textContent |
1004 | 1005 | var str = ""; |
1005 | 1006 | |
1006 | 1007 | var cs = el.childNodes; |
— | — | @@ -1332,4 +1333,4 @@ |
1333 | 1334 | //note: all skins should call runOnloadHook() at the end of html output, |
1334 | 1335 | // so the below should be redundant. It's there just in case. |
1335 | 1336 | hookEvent("load", runOnloadHook); |
1336 | | -hookEvent("load", mwSetupToolbar); |
\ No newline at end of file |
| 1337 | +hookEvent("load", mwSetupToolbar); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -366,6 +366,8 @@ |
367 | 367 | * Fixed a display problem in the E-mail part of the preferences page when |
368 | 368 | the E-mail is not confirmed: the notice about it was in the same line as |
369 | 369 | a preference. |
| 370 | +* Table sorting JavaScript prefers textContent over innerText to allow hidden |
| 371 | + sort keys to work on Safari |
370 | 372 | |
371 | 373 | == API changes since 1.10 == |
372 | 374 | |