Skip to main content

Bug Tracker

Side navigation

#4887 closed bug (wontfix)

Opened July 12, 2009 05:11AM UTC

Closed November 04, 2010 11:50PM UTC

DOMSubtreeModified triggers twice when using jQuery.fn.html()

Reported by: blairmitchelmore Owned by:
Priority: low Milestone:
Component: manipulation Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

This bug is something I noticed today while playing with the DOMSubtreeModified event. When you call this.html() on a DOM node with child elements DOMSubtreeModified triggers twice. I assume this is because this.html() calls this.empty().append(value).

The test code (run in Firefox, Safari, and Chromium) is available at

This is fairly trivial, and I can't imagine a non-contrived situation but it does differ from the behaviour of calling this.innerHTML slightly enough to be reported. Feel free not to fix this.

Attachments (0)
Change History (2)

Changed June 13, 2010 01:20PM UTC by dmethvin comment:1

component: unfiledmanipulation

Changed November 04, 2010 11:50PM UTC by rwaldron comment:2

milestone: 1.4
priority: triviallow
resolution: → wontfix
status: newclosed

Mutation Events are not documented as supported by jQuery.

In fact - they are deprecated:

See also: