Bug Tracker

Ticket #8281 (closed bug: wontfix)

Opened 4 years ago

Last modified 4 years ago

1.5 Mozilla Osx Bug

Reported by: anonymous Owned by: browser-firefox
Priority: low Milestone: 1.next
Component: manipulation Version: 1.5
Keywords: browserbug Cc:
Blocking: Blocked by:

Description

With version 1.5, in mozilla, if I have some anchors with a specific style (ex. "color:green") and give an other style to their child divs (ex. : "color:red;"), and attach them via jquery on document.ready, the child divs style will not displayed.

 Here the example of the code showing this case with 3 anchors, where second and third ones have the sub-div setted via jquery and the first one has already the div on the html document.

Change History

comment:1 Changed 4 years ago by jitter

  • Keywords browserbug added
  • Owner set to browser-firefox
  • Status changed from new to assigned
  • Component changed from unfiled to manipulation
  • Priority changed from undecided to low

Thanks for taking the time to contribute to the jQuery project by writing a bug report.

As this  test case shows this isn't a jQuery bug but a bug in FF 3.6.13 (fixed in FF4.b.something) when setting the innerHTML property.

You can workaround this by using something along these lines

$("a.change").each(function() {
    var tmp = $(this).text();
    $(this).empty().append("<div>" + tmp + "</div>")
})

comment:2 Changed 4 years ago by jitter

  • Status changed from assigned to closed
  • Resolution set to wontfix
Note: See TracTickets for help on using tickets.