Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12805 closed bug (notabug)

CSS function error : string is undefined

Reported by: thomas.josseau@… Owned by: thomas.josseau@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:

Description

I report you a weird bug I have, I don't know why it happens : << var test = $('<div></div>').css({

backgroundColor : 'white'

}) ; $('body').append(test) ; / With or without alert(test.css()) ; >>

Tested in local and in JSFiddle, with Firefox on Windows 7, same result : << TypeError : string is undefined >> on line 572. It only happens while getting the css ('.css()') - here in the alert.

Change History (4)

comment:1 Changed 7 years ago by dmethvin

Owner: set to thomas.josseau@…
Status: newpending

Please provide a link to your fiddle.

comment:2 in reply to:  1 Changed 7 years ago by thomas.josseau@…

Status: pendingnew

Replying to dmethvin:

Please provide a link to your fiddle.

Here is the link : http://jsfiddle.net/hqNUd/

comment:3 Changed 7 years ago by dmethvin

Resolution: notabug
Status: newclosed

The .css() method requires an argument, see the documentation and/or ask for help on a forum.

comment:4 in reply to:  3 Changed 7 years ago by thomas.josseau@…

Replying to dmethvin:

The .css() method requires an argument, see the documentation and/or ask for help on a forum.

Oh... Sorry for that useless ticket, I though we could access to all defined style with css(). Thank you for your answer. Best regards.

Note: See TracTickets for help on using tickets.