Commit f6ab0f3
committed
Extend
Closes [#62][]
Extends the `processPropertyIdentity` function from the `processors`
module to pass-through `Element` instances, instead of coercing them
through calls to `String()`. In order to accommodate that change, this
commit also extends the `TemplatePart` interface to accept `Element`
instances for its `value:` property.
The change to the `createTreeWalker` invocation within `collectParts`
was highlighted by TypeScript, as the final `boolean` argument doesn't
conform to the [createTreeWalker][] signature. It was a necessary change
to build the project and execute the test suite locally.
[#62]: #62
[createTreeWalker]: https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalkerprocessPropertyIdentity to handle Element1 parent 1f13aca commit f6ab0f3
File tree
4 files changed
+16
-3
lines changed- src
- test
4 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
17 | 30 | | |
18 | 31 | | |
19 | 32 | | |
| |||
0 commit comments