Bug Tracker

Modify

Ticket #3608 (closed bug: worksforme)

Opened 5 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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

jquery_opera_css.html Download (969 bytes) - added by mikecapp 5 years ago.
minimal bug demo

Change History

Changed 5 years ago by mikecapp

minimal bug demo

comment:1 Changed 4 years ago by dmethvin

  • Component changed from unfilled to core

comment:2 Changed 3 years ago by miketaylr

  • Status changed from new to closed
  • Resolution set to worksforme

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.