Function
processText
(n1, n2, container, anchor)
Source from the content-addressed store, hash-verified
| 496 | } |
| 497 | |
| 498 | const processText: ProcessTextOrCommentFn = (n1, n2, container, anchor) => { |
| 499 | if (n1 == null) { |
| 500 | hostInsert( |
| 501 | (n2.el = hostCreateText(n2.children as string)), |
| 502 | container, |
| 503 | anchor, |
| 504 | ) |
| 505 | } else { |
| 506 | const el = (n2.el = n1.el!) |
| 507 | if (n2.children !== n1.children) { |
| 508 | hostSetText(el, n2.children as string) |
| 509 | } |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | const processCommentNode: ProcessTextOrCommentFn = ( |
| 514 | n1, |
Tested by
no test coverage detected