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: |
Description
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 http://test.blairmitchelmore.com/dom/domsubtreemodified.html
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 comment:1
component: | unfiled → manipulation |
---|
Changed November 04, 2010 11:50PM UTC by comment:2
milestone: | 1.4 |
---|---|
priority: | trivial → low |
resolution: | → wontfix |
status: | new → closed |
Mutation Events are not documented as supported by jQuery.
In fact - they are deprecated:
http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-mutationevents
See also: