I just learned that the "maxlength" attribute on html <textarea> elements does not count correctly.
This is because newlines are \n in the textarea are required to be converted to \r\n before submission.
We solved this by... changing the spec to say this is fine https://bugzilla.mozilla.org/show_bug.cgi?id=702296