You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related t #971. I'm not sure what the intended behavior for text nodes is, but I had hoped this would work:
varel=document.createElement('div');document.body.appendChild(el);// Works as expectedvarvdom=patch(el,snabbdom.vnode(undefined,{},[],'Text',null));// Throws exceptionvarvdom2=patch(vdom,snabbdom.vnode(undefined,{},[],'Text 2',null));
The second patch call throws an exception where it tries to do getAttribute on null. Is this even supposed to work?
Related t #971. I'm not sure what the intended behavior for text nodes is, but I had hoped this would work:
The second
patch
call throws an exception where it tries to dogetAttribute
onnull
. Is this even supposed to work?Changing an
h2
to a bare text works:But the other way around does not:
The text was updated successfully, but these errors were encountered: