Skip to content

Commit

Permalink
Hidden input types are still considered enabled in css3. Fixes #10148.
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed May 28, 2012
1 parent 9284760 commit 45b30f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sizzle.js
Expand Up @@ -780,7 +780,7 @@ var Expr = Sizzle.selectors = {

filters: {
enabled: function( elem ) {
return elem.disabled === false && elem.type !== "hidden";
return elem.disabled === false;
},

disabled: function( elem ) {
Expand Down

1 comment on commit 45b30f1

@dmethvin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.