Merge pull request #2359 from vsemozhetbyt/patch-1

Fix typo in 8.5 (Shadow DOM slots...)
This commit is contained in:
Ilya Kantor 2020-12-07 17:14:38 +03:00 committed by GitHub
commit 1e4b9e43e4
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:
- `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:
- `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`.