Opened 9 years ago
Closed 9 years ago
#14906 closed bug (notabug)
.css() tries to call camelCase on undefined in version 1.11.0
Reported by: | dotnetCarpenter | Owned by: | dotnetCarpenter |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.11.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
.css() tries to call camelCase on undefined
Versions: 1.11.0, 1.9.1
Browsers: all
OS: Mac OS X 10.9.2
Steps to reproduce:
- Go to jquery.com
- Open your browser console
- Run the following line: jQuery('p').css()
Chrome indicate the error in the camelCase function, which is called with undefined.
Error message in Chrome: TypeError: Cannot call method 'replace' of undefined
Change History (4)
comment:1 Changed 9 years ago by
Owner: | set to dotnetCarpenter |
---|---|
Status: | new → pending |
comment:2 Changed 9 years ago by
Status: | pending → new |
---|
Sorry, my bad. I read .css() and saw getComputedStyle(). I expected .css() to return a normalized object of getComputedStyle(). The documentation doesn't state that it can be used without arguments.
comment:3 Changed 9 years ago by
Can you close the issue for me? I can't login and keep getting Trac errors:
Trac detected an internal error: KeyError: 'captcha_redirect'
comment:4 Changed 9 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
So we documented that the
.css()
method can take no arguments at all? Can you link to that so we can fix it?