Fix typo in 8.5 (Shadow DOM slots...)
This commit is contained in:
parent
c56e6a57ac
commit
76b42c3189
1 changed files with 1 additions and 1 deletions
|
@ -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`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue