Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

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
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 .