#6785 closed bug (duplicate)
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
Change History (4)
comment:1 Changed 12 years ago by
Owner: | set to hesselink |
---|---|
Priority: | → undecided |
Status: | new → pending |
comment:3 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Please provide a distilled and reduced jsFiddle test case, thanks!