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
--browser result--
const f = document.createDocumentFragment();
const d = document.createElement('div')
d.innerHTML='<a>aaa</a>';
f.append(d);
const t = document.createElement('template');
t.content.append(f);
console.log(t.innerHTML); // '<div><a>aaa</a></div>'
console.log(t.innerText); //''
--linkedom--
console.log(t.innerHTML); // ''
console.log(t.innerText); //''
After appending the child element to the HTML Template Element's content
If you do innerHTML, it is normal to output the contents of the child element, but it is not output in linkedom.
bugfix
0 commit comments