Bug Tracker

Opened 6 years ago

Closed 6 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:

  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

Change History (4)

comment:1 Changed 6 years ago by dmethvin

Owner: set to 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?

comment:2 Changed 6 years ago by dotnetCarpenter

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.

comment:3 Changed 6 years ago by dotnetCarpenter

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 6 years ago by dmethvin

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.