例えば、クリックイベントがshadow DOMの <user-card> コンポーネント内で発生したとします。しかしメインドキュメント内のスクリプトはshadow DOM内部については何も知りません。特にコンポーネントがサードパーティライブラリから来たものである場合はなおさらです。
This is a standalone server for the javascript tutorial https://javascript.info. You can use it to run the tutorial locally and translate it into your language ...