Fix typo in 8.5 (Shadow DOM slots...)

This commit is contained in:
Vse Mozhe Buty 2020-12-06 22:08:01 +02:00 committed by GitHub
parent c56e6a57ac
commit 76b42c3189
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -446,7 +446,7 @@ Composition does not really move nodes, from JavaScript point of view the DOM is
JavaScript can access slots using methods: JavaScript can access slots using methods:
- `slot.assignedNodes/Elements()` -- returns nodes/elements inside the `slot`. - `slot.assignedNodes/Elements()` -- returns nodes/elements inside the `slot`.
- `node.assignedSlot` -- the reverse meethod, returns slot by a node. - `node.assignedSlot` -- the reverse property, returns slot by a node.
If we'd like to know what we're showing, we can track slot contents using: If we'd like to know what we're showing, we can track slot contents using:
- `slotchange` event -- triggers the first time a slot is filled, and on any add/remove/replace operation of the slotted element, but not its children. The slot is `event.target`. - `slotchange` event -- triggers the first time a slot is filled, and on any add/remove/replace operation of the slotted element, but not its children. The slot is `event.target`.