2

When you are writing a comment, type something with 14 characters. It will tell you that you need one more at least. Leave a space. It will look like you can post the comment. Try posting it, it says you can't. But according to the counter just below the text-area, you should be fine.

7
  • because they are trimming the text?
    – DarthVader
    Commented Jan 20, 2013 at 19:19
  • @DarthVader Still..
    – Koray Tugay
    Commented Jan 20, 2013 at 19:19
  • Still what? if they dont trim the text, u can put 15 empty space.
    – DarthVader
    Commented Jan 20, 2013 at 19:20
  • Still, it is a bug.
    – Koray Tugay
    Commented Jan 20, 2013 at 19:21
  • no it s not. why would it be bug?
    – DarthVader
    Commented Jan 20, 2013 at 19:22
  • Ok whatever, if you say so..
    – Koray Tugay
    Commented Jan 20, 2013 at 19:22
  • put 15 space and try to submit.
    – DarthVader
    Commented Jan 20, 2013 at 19:23

1 Answer 1

3

The message showing the number of characters that are still necessary to reach the minimum comment length, or the number of characters that you can still type is shown on browser side, while the validation of the comment is done server-side.

The error message could be changed as the following, but then it should list all the characters that are removed.

Comments must be at least 15 characters in length. Trailing spaces are removed.

For example, 15 spaces followed by a back-tick still cause the error to appear.

Probably the message should be similar to the following one, if it needs to really be changed.

Comments must be at least 15 characters in length. Some characters are not considered when calculating the comment lenght.

2
  • 1
    Surely javascript has a :strip" function that can be applied before the "count" function - so that it will accurately determine the real allowed character length?
    – Taryn East
    Commented Jan 21, 2013 at 2:09
  • It is more complicated than removing some characters from the end of the comment. Plus, parsing the comment is done server-side.
    – apaderno
    Commented Jan 21, 2013 at 2:18

Not the answer you're looking for? Browse other questions tagged .