Skip to content

Commit

Permalink
exclude [type="hidden"] not :hidden
Browse files Browse the repository at this point in the history
fixes #283
  • Loading branch information
amerikan committed Dec 17, 2015
1 parent fb900fe commit f3d4b7d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1>HTML5 Placeholder jQuery Plugin</h1>

<br />

<input type="hidden" name="hidden" placeholder="This can't be seen">
<input type="hidden" name="hidden" placeholder="This can't be seen" value="secret">

<br />

Expand Down
4 changes: 2 additions & 2 deletions jquery.placeholder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery Placeholder Plugin v2.3.0
* jQuery Placeholder Plugin v2.3.1
* https://github.com/mathiasbynens/jquery-placeholder
*
* Copyright 2011, 2015 Mathias Bynens
Expand Down Expand Up @@ -52,7 +52,7 @@

return this.filter((isInputSupported ? 'textarea' : ':input') + '[' + (debugMode ? 'placeholder-x' : 'placeholder') + ']')
.not('.'+settings.customClass)
.not(':radio, :checkbox, :hidden')
.not(':radio, :checkbox, [type=hidden]')
.bind({
'focus.placeholder': clearPlaceholder,
'blur.placeholder': setPlaceholder
Expand Down
6 changes: 3 additions & 3 deletions jquery.placeholder.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jquery.placeholder.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-placeholder",
"version": "2.3.0",
"version": "2.3.1",
"title": "HTML5 Placeholder jQuery Plugin",
"description": "A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion simulated.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1>HTML5 Placeholder jQuery Plugin</h1>

<br />

<input type="hidden" name="hidden" placeholder-x="This can't be seen">
<input type="hidden" name="hidden" placeholder-x="This can't be seen" value="secret">

<br />

Expand Down

0 comments on commit f3d4b7d

Please sign in to comment.