mathiasbynens/jquery-placeholder — pull request #59 by sbull (2012-02-24 04:06:17+00:00)
Title: Apply placeholder functionality if value matches placeholder, to fix bac...

...k button and refresh problems (IE9). Fixes #58.

This patch has the side-effect (depending on your point of view, regression?) of not allowing the exact placeholder text itself to be entered into a field. If the placeholder text is entered, it will be treated as blank. In my opinion, this is desirable behavior, as I believe most web apps would prefer to treat the exact placeholder text as blank (like "use the default"), and it is likely to fix other non-obvious back button / refresh problems.

Also, I'm not thinking of a better way to fix this.

This patch also removes an apparently useless variable declaration of $origInput.