Skip to content

Commit cfd1fbd

Browse files
committed
Resolves an issue with password inputs in IE6 and IE7. Patched by temp01. Fixes mathiasbynens#12.
1 parent b9e03c0 commit cfd1fbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jquery.placeholder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
var newAttrs = {},
2626
rinlinejQuery = /^jQuery\d+$/;
2727
$.each(elem.attributes, function(i, attr) {
28-
if (!rinlinejQuery.test(attr.name)) {
28+
if (attr.specified && !rinlinejQuery.test(attr.name)) {
2929
newAttrs[attr.name] = attr.value;
3030
}
3131
});

jquery.placeholder.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)