* Fixed a display problem in the E-mail part of the preferences page when
the E-mail is not confirmed: the notice about it was in the same line as
a preference.
+* Table sorting JavaScript prefers textContent over innerText to allow hidden
+ sort keys to work on Safari
== API changes since 1.10 ==
function ts_getInnerText(el) {
if (typeof el == "string") return el;
if (typeof el == "undefined") { return el };
- if (el.innerText) return el.innerText; // Not needed but it is faster
+ if (el.textContent) return el.textContent; // not needed but it is faster
+ if (el.innerText) return el.innerText; // IE doesn't have textContent
var str = "";
var cs = el.childNodes;
//note: all skins should call runOnloadHook() at the end of html output,
// so the below should be redundant. It's there just in case.
hookEvent("load", runOnloadHook);
-hookEvent("load", mwSetupToolbar);
\ No newline at end of file
+hookEvent("load", mwSetupToolbar);