Skip to main content

Bug Tracker

Side navigation

#3608 closed bug (worksforme)

Opened November 14, 2008 04:02PM UTC

Closed October 26, 2010 06:31PM UTC

css(propname) glitch on Opera

Reported by: mikecapp Owned by: flesler
Priority: minor Milestone: 1.3
Component: core Version: 1.2.6
Keywords: opera css Cc:
Blocked by: Blocking:
Description

Doc examples for the $.css(name) function suggest that both hyphenated "css-style" and camelcased "scriptStyle" property names are valid.

However, in Opera (testing v9.62 on Win2003 Server), "css-style" fails on elements that have not yet been inserted into the DOM. "scriptStyle" still works in this case, and "css-style" works once the element has been inserted, and the issue doesn't manifest on any other browser tested (FF3, IE7, Safari3, Chrome).

See attachment for demonstration; I get no "background-color" for "Clone before insertion into DOM".

Attachments (1)
Change History (2)

Changed October 14, 2009 12:24AM UTC by dmethvin comment:1

component: unfilledcore

Changed October 26, 2010 06:31PM UTC by miketaylr comment:2

resolution: → worksforme
status: newclosed

Using your test case, and updating to the latest jQuery, this works in Opera.

http://bugs.jquery.com/raw-attachment/ticket/3608/jquery_opera_css.html