Optimize the processing

In case the element to process is not enqueued, skip it
Decide if the vents should bubble/capture

Also be able to decide the direction of the bubbling/capture
Or either first capture then bubble or the other way around