Frontmatter
| id | 114 |
| title | DeltaUpdates: du_insertNode() |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Nov 26, 2019, 9:17 PM |
| updatedAt | Nov 26, 2019, 9:19 PM |
| githubUrl | https://github.com/neomjs/neo/issues/114 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 26, 2019, 9:19 PM |

we need a switch to check if vtype:'text' nodes exist for a given parentNode.
if not, do the same as before (performance).
otherwise, use parentNode.childNodes (instead of parentNode.childres), filter out the comments to get the real index, get the new node from a template and insert it.