From: Timo Tijhof Date: Fri, 22 Jun 2012 20:16:18 +0000 (+0200) Subject: (bug 36310) jquery.byteLimit should skip < 0 due to Firefox bug. X-Git-Tag: 1.31.0-rc.0~23149^2~2 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=126437076ca25a5aba3c53112b76e92e48368ca3;p=lhc%2Fweb%2Fwiklou.git (bug 36310) jquery.byteLimit should skip < 0 due to Firefox bug. * Firefox returns -1 if an element has no maxLength property set. (instead of undefined). This is especially problematic because roundtripping that value (e.g. setting elem.maxLength = -1;) causes a DOMException to be thrown. That exception is expected (and happens also in Chrome), but Chrome and other standard browsers don't return -1 for the getter, so it would never end up in the setter. * Moved the check to before the property set/removal. Otherwise the exception would still be thrown. This should've been before anyway. * This fixes: - (bug 36310) Can't enter a log summary on Special:MovePage in Firefox. Even though we do set maxLength for that field from PHP. Recently the input field was changed from to