Chromium Code Reviews
        
  DescriptionMake Event.path() return a pre-calculated NodeList rather than calculating it dynamically.
The current implementation of Event.path() populates a NodeList dynamically when Event.path() is called.
That has a drawback: If an event handler mutates a DOM tree, the returned value of event.path() will be changed.
This patch pre-calculates a NodeList for each node so that event.path() should not be affected by mutating DOM tree.
BUG=240162
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150293
   
  Patch Set 1 #Patch Set 2 : Style clean up. Remove an empty lie. #Patch Set 3 : Add an include. #
 Messages
    Total messages: 8 (0 generated)
     
  
  
       | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||