Open Gcaufy opened 6 years ago
// node: <div><slot /></div> // newChild: Hello World // oldChild: <slot /> node.replaceChild(newChild, oldChild); // Expect: <div>Hello World</div> // Actually: Hello World
But if I added a space befor <slot />, I get the correct result.
<slot />
// node: <div> <slot /></div> // newChild: Hello World // oldChild: <slot /> node.replaceChild(newChild, oldChild); // Expect: <div> Hello World</div> // Actually: <div> Hello World</div>
But if I added a space befor
<slot />
, I get the correct result.