Skip to main content

Bug Tracker

Side navigation

#14906 closed bug (notabug)

Opened March 22, 2014 07:53PM UTC

Closed March 23, 2014 11:57PM UTC

.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:

1. Go to jquery.com

2. Open your browser console

3. 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

Attachments (0)
Change History (4)

Changed March 22, 2014 08:24PM UTC by dmethvin comment:1

owner: → dotnetCarpenter
status: newpending
jQuery('p').css()

So we documented that the .css() method can take no arguments at all? Can you link to that so we can fix it?

Changed March 23, 2014 11:50PM UTC by dotnetCarpenter comment:2

status: pendingnew

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.

Changed March 23, 2014 11:52PM UTC by dotnetCarpenter comment:3

Can you close the issue for me? I can't login and keep getting Trac errors:

Trac 
detected an internal error: 
KeyError: 'captcha_redirect'

Changed March 23, 2014 11:57PM UTC by dmethvin comment:4

resolution: → notabug
status: newclosed