Skip to main content

Bug Tracker

Side navigation

#8281 closed bug (wontfix)

Opened February 15, 2011 11:57AM UTC

Closed February 15, 2011 01:05PM UTC

1.5 Mozilla Osx Bug

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

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.

Attachments (0)
Change History (2)

Changed February 15, 2011 01:05PM UTC by jitter comment:1

component: unfiledmanipulation
keywords: → browserbug
owner: → 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>")

Changed February 15, 2011 01:05PM UTC by jitter comment:2

resolution: → wontfix
status: assignedclosed