File tree 2 files changed +2
-2
lines changed
8-web-components/5-slots-composition
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ It provides convenient methods for search parameters:
69
69
- **`append(name, value)`** -- add the parameter,
70
70
- **`delete(name)`** -- remove the parameter,
71
71
- **`get(name)`** -- get the parameter,
72
- - **`getAll(name)`** -- get all parameters with that name,
72
+ - **`getAll(name)`** -- get all parameters with that name (if many, e.g. `?user=John&user=Pete`) ,
73
73
- **`has(name)`** -- check for the existance of the parameter,
74
74
- **`set(name, value)`** -- set/replace the parameter,
75
75
- **`sort()`** -- sort parameters by name, rarely needed,
Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ The process of rendering slotted elements inside their slots is called "composit
420
420
Composition does not really move nodes, from JavaScript point of view the DOM is still same.
421
421
422
422
JavaScript can access slots using methods:
423
- - ` slot.assignedNodes/Elements() ` -- returns nodes/elements inside the ` slot `
423
+ - ` slot.assignedNodes/Elements() ` -- returns nodes/elements inside the ` slot ` .
424
424
- ` node.assignedSlot ` -- the reverse meethod, returns slot by a node.
425
425
426
426
If we'd like to know what we're showing, we can track slot contents using:
You can’t perform that action at this time.
0 commit comments