Previously, tests for isolated elements might have inaccurately passed by directly appending the isolatedElement to the document.body.
This commit corrects the event propagation mechanism by removing the direct appendage of isolatedElement, ensuring it mimics real-life scenarios more closely.
Moreover, the 'composed: true' attribute has been added to the events, allowing them to bubble out of the shadow DOM or isolated elements as they would naturally.
Found this issue during merging it to
wxt
.Previously, tests for isolated elements might have inaccurately passed by directly appending the isolatedElement to the
document.body
.This commit corrects the event propagation mechanism by removing the direct appendage of isolatedElement, ensuring it mimics real-life scenarios more closely.
Moreover, the 'composed: true' attribute has been added to the events, allowing them to bubble out of the shadow DOM or isolated elements as they would naturally.