What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 Stack Exchange communities.

The real-time character counter on the moderator nominations page claims I have 9 characters left. The non-real-time counter claims I have too many characters. PHP says that the non-real-time counter is correct, so why is the real-time counter so off?

Nomination character count bug

share|improve this question
Are you still working on that thing? :) – Robert Harvey Jun 6 '12 at 3:14
@RobertHarvey: Have been for the past 6 months ;) – Ryan O'Hara Jun 6 '12 at 3:15

1 Answer 1

up vote 5 down vote accepted

Great find and thanks for posting a screenshot that allowed me to recreate your input exactly.

The client javascript code is using \n line endings, while the server is using \r\n, causing this count discrepancy.

A fix that normalizes the endings before doing both client and server validation will be pushed in the next build, after rev 2012.6.6.2800.

share|improve this answer

You must log in to answer this question.

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