Closed (won't fix)
Project:
Maxlength JS
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2011 at 14:45 UTC
Updated:
12 Dec 2012 at 15:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
jm.federico commentedHi, thanks for your report.
The PHP validations is actually not performed by this module. it comes bundled with Drupal Core, what we might do is just count them twice too in the JS.
Just to be sure, can you please confirm if there is an extra line-break at the end of the second paragraph?
Comment #2
jm.federico commentedDowngrading to normal since it will actually still work, only that it is a bit of an annoyance.
Comment #3
Nalum commentedHello, no problem.
There is no line-break at the end of the second paragraph.
Comment #4
dave reidProbably because new lines are actually two characters in PHP:\r\n.This is because browsers submit new lines in forms as two characters:
\r\n.Comment #5
dave reidSee http://stackoverflow.com/questions/462348/string-length-differs-from-jav... and http://www.sitepoint.com/line-endings-in-javascript/.
Comment #6
bambilicious commentedCorrected mr.strlen -> ml.strlen.
Comment #7
jm.federico commentedClosing as module is not maintained any more.