Simetrical wrote:
* For everyone else, the client-side maxlength limit
needs to be
changed to a byte count. This should be possible using JavaScript,
and is probably not otherwise possible (although if it were that would
be great). In the event of a client-side overrun (say, because the
user doesn't have JavaScript), the server should truncate the provided
string and return it in an error message for the user to manually
adjust. It should not silently truncate it. In this case as well,
the maxlength for edit summaries should be upped to 255 bytes.
I've once written a code which limits the summary length in bytes by just
preventing the user from writing more bytes than possible, but I didn't
thoroughly test it and thus it wasn't enabled:
http://he.wikipedia.org/wiki/MediaWiki:Summarylength.js
(this code requires the last function in
http://he.wikipedia.org/wiki/MediaWiki:Functions.js ,
String.prototype.getByteLength).