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 comment:1
owner: | → hesselink |
---|---|
priority: | → undecided |
status: | new → pending |
Changed October 29, 2010 07:34AM UTC by comment:2
status: | pending → new |
---|
This is a duplicate of #5539.
Changed October 29, 2010 04:46PM UTC by comment:3
resolution: | → duplicate |
---|---|
status: | new → closed |
Please provide a distilled and reduced jsFiddle test case, thanks!