Skip to main content

Bug Tracker

Side navigation

#12805 closed bug (notabug)

Opened October 29, 2012 07:29PM UTC

Closed November 21, 2012 07:11PM UTC

Last modified November 21, 2012 08:07PM UTC

CSS function error : string is undefined

Reported by: thomas.josseau@gmail.com Owned by: thomas.josseau@gmail.com
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.

Attachments (0)
Change History (4)

Changed October 30, 2012 10:46PM UTC by dmethvin comment:1

owner: → thomas.josseau@gmail.com
status: newpending

Please provide a link to your fiddle.

Changed October 30, 2012 11:07PM UTC by thomas.josseau@gmail.com comment:2

status: pendingnew

Replying to [comment:1 dmethvin]:

Please provide a link to your fiddle.

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

Changed November 21, 2012 07:11PM UTC by dmethvin comment:3

resolution: → notabug
status: newclosed

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

Changed November 21, 2012 08:07PM UTC by thomas.josseau@gmail.com comment:4

Replying to [comment:3 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.