Bug Tracker

Opened 7 years ago

Closed 7 years ago

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

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 (2)

comment:1 Changed 7 years ago by jitter

Component: unfiledmanipulation
Keywords: browserbug added
Owner: set to browser-firefox
Priority: undecidedlow
Status: newassigned

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 7 years ago by jitter

Resolution: wontfix
Status: assignedclosed
Note: See TracTickets for help on using tickets.