Skip to main content

Bug Tracker

Side navigation

#6785 closed bug (duplicate)

Opened July 12, 2010 03:27PM UTC

Closed October 29, 2010 04:46PM UTC

Last modified October 29, 2010 04:46PM UTC

DOM mutation events can have text nodes as target

Reported by: hesselink Owned by: hesselink
Priority: undecided Milestone: 1.4.3
Component: event Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:
Description

I've added a small fix to the jquery event code: if the event target was a text node, it would be set to the parent of that text node. However, for DOM mutation events, text nodes are perfectly valid (and useful) targets. So I've added an extra check to see if the event type starts with 'DOM', and not fix the target in that case.

See http://github.com/typLAB/jquery/commit/6284b37914e3f4d6634e37cbf93d76d1dc6ee3bd

Attachments (0)
Change History (4)

Changed October 28, 2010 05:28PM UTC by rwaldron comment:1

owner: → hesselink
priority: → undecided
status: newpending

Please provide a distilled and reduced jsFiddle test case, thanks!

Changed October 29, 2010 07:34AM UTC by hesselink comment:2

status: pendingnew

This is a duplicate of #5539.

Changed October 29, 2010 04:46PM UTC by rwaldron comment:3

resolution: → duplicate
status: newclosed

Changed October 29, 2010 04:46PM UTC by rwaldron comment:4

Duplicate of #5539.