ginader/HTML5-placeholder-polyfill — pull request #38 by hippipp (2013-01-07 19:32:04+00:00)
Title: If input already has focus when placeHolder method run, execute focus-handling code

If jQuery.fn.placeHolder is executed on a jQuery set that contains an element with focus, execute the focus-handling code.

This patch handles scenarios in which a DOM structure is created on-the-fly and then some post-render callback applies the polyfill. If one of the elements in the DOM already has focus, the placeholder text will display on top of the cursor and won't disappear as the user types.