Skip to content

Commit c51e467

Browse files
committed
Fix error on inserting node without raws in some cases
1 parent 829ae47 commit c51e467

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/container.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ class Container extends Node {
214214
i = i.proxyOf
215215
if (i.parent) i.parent.removeChild(i)
216216
if (i[isClean]) markTreeDirty(i)
217+
218+
// if (!i.raws) i.raws = {}
217219
if (typeof i.raws.before === 'undefined') {
218220
if (sample && typeof sample.raws.before !== 'undefined') {
219221
i.raws.before = sample.raws.before.replace(/\S/g, '')

0 commit comments

Comments
 (0)