{"issue":{"title":"Replacement Password field in IE7 breaking form submission","user":{"login":"jgraham821","id":1282427,"url":"https://api.github.com/users/jgraham821","gravatar_id":"401a0c29b7685fe9ebacd8f1b2f649bb","avatar_url":"https://secure.gravatar.com/avatar/401a0c29b7685fe9ebacd8f1b2f649bb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-23T16:25:25Z","milestone":null,"state":"open","updated_at":"2011-12-24T09:20:35Z","labels":[],"id":2648468,"closed_at":null,"html_url":"https://github.com/mathiasbynens/jquery-placeholder/issues/45","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"In the setPlaceholder function, when the replacement field is created for the password field, the name attribute is removed from the replacement field. In IE7 at least, any input in the form that follows the replacement field is not submitted by the browser to the server. This is in fact causing the password field to not be submitted to the server at all because this replacement field was added to the DOM before the real password field.\r\n\r\n```js\r\n$replacement\r\n\t.removeAttr('name')\r\n\t// We could just use the `.data(obj)` syntax here, but that wouldn’t work in pre-1.4.3 jQueries\r\n\t.data('placeholder-password', true)\r\n\t.data('placeholder-id', id)\r\n\t.bind('focus.placeholder', clearPlaceholder);\r\n```\r\n\r\nI've fixed this issue for myself by just modifying the name attribute to be something we would never use in a form versus removing the name. For example, I just appended \".replacement\" to the name and that solves the issue.","number":45,"url":"https://api.github.com/repos/mathiasbynens/jquery-placeholder/issues/45","comments":1,"assignee":null},"comment":{"user":{"login":"mathiasbynens","id":81942,"url":"https://api.github.com/users/mathiasbynens","gravatar_id":"24e08a9ea84deb17ae121074d0f17125","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-24T09:20:35Z","updated_at":"2011-12-24T09:20:35Z","id":3267122,"body":"http://mathiasbynens.be/demo/placeholder?search=&name=&email=&url=&tel=&=e.g.+hunter2&password=lol&message= seems to work just fine.\r\n\r\nI guess you’re saying the `&=e.g.+hunter2` part messes things up? What kind of system are you on?","url":"https://api.github.com/repos/mathiasbynens/jquery-placeholder/issues/comments/3267122"},"action":"created"}