#12805 closed bug (notabug)
CSS function error : string is undefined
Reported by: | Owned by: | ||
---|---|---|---|
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 follow-up: 2 Changed 10 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Status: | pending → new |
---|
Replying to dmethvin:
Please provide a link to your fiddle.
Here is the link : http://jsfiddle.net/hqNUd/
comment:3 follow-up: 4 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
The .css()
method requires an argument, see the documentation and/or ask for help on a forum.
comment:4 Changed 10 years ago by
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.
Please provide a link to your fiddle.