Modify ↓
Ticket #8281 (closed bug: wontfix)
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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>") })