From 126437076ca25a5aba3c53112b76e92e48368ca3 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 22 Jun 2012 22:16:18 +0200 Subject: [PATCH] (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