Inferno: New event propagation system

Created on 13 Jul 2019  路  3Comments  路  Source: infernojs/inferno

Implement new event propagation system to support shadow roots and iframes. The basic idea is simple:

  • event.composedPath() returns html nodes across The shadow root boundaries. Get the first html node from the stack & loop through them

Implement new benchmark or check If existing event benchmark can be used to make sure there is no regression in performance.

Verify composedPath works through iFrame's

It should fix these:
https://github.com/infernojs/inferno/issues/1439
https://github.com/infernojs/inferno/issues/1430

enhancement

Most helpful comment

We should also measure is it faster to loop dom nodes from composedPath compared to parentNode

All 3 comments

We should also measure is it faster to loop dom nodes from composedPath compared to parentNode

Browser support is horrible for path and composed path...

Neither IE11 nor Edge (v18) supports either path or composedPath. Firefox supports composedPath. Chrome supports both path (it was Google's original idea) and composedPath.

Closing. Found another way.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EmilTholin picture EmilTholin  路  5Comments

Elliot-Evans-95 picture Elliot-Evans-95  路  4Comments

yury-dymov picture yury-dymov  路  5Comments

briansakal picture briansakal  路  5Comments

dessalines picture dessalines  路  4Comments