Created
February 23, 2012 10:01
-
-
Save onemanbucket/1892045 to your computer and use it in GitHub Desktop.
outerSize() on input with type=hidden should be 0 (jquery bug)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the commit in question: https://github.com/jquery/jquery/commit/80ad14bd14467c547c2867f2677ca581aa29bf33 | |
JSfiddle example: http://jsfiddle.net/jL7Lr/ | |
When setting a padding on INPUT, this css rule gets taken into account when using outerWidth() on input elements with type="hidden". | |
Browsers don't seem to honor padding on hidden type inputs when rendering the page so this seems like a bug to me! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment