Placeholder deletes text input fields on IE9 #62

Closed
statico opened this Issue Mar 8, 2012 · 2 comments

Comments

2 participants
@statico

statico commented Mar 8, 2012

This code deletes the input element after creating it:

$('#foo').append($('<input type="text">').placeholder());

Here's a live example -- try it with IE9: http://jsfiddle.net/jTnc3/6/

@mathiasbynens

This comment has been minimized.

Show comment Hide comment
@mathiasbynens

mathiasbynens Mar 8, 2012

Owner

Fixed in c548851. Thanks for the report and the test case!

Note that your demo will fail in IE9 regardless, because you’re using the raw GitHub URL to reference the script file. GitHub sends all “raw” files as text/plain, which causes IE9 to block them.

Owner

mathiasbynens commented Mar 8, 2012

Fixed in c548851. Thanks for the report and the test case!

Note that your demo will fail in IE9 regardless, because you’re using the raw GitHub URL to reference the script file. GitHub sends all “raw” files as text/plain, which causes IE9 to block them.

@statico

This comment has been minimized.

Show comment Hide comment
@statico

statico Mar 8, 2012

Awesome. Thanks!

statico commented Mar 8, 2012

Awesome. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment