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
constresult=render(<divid="my-div"/>);constmyDiv=result.baseElement.querySelector("#my-div")asHTMLDivElement;constnewEntry=document.createElement("span");newEntry.append("I am some text");myDiv.appendChild(newEntry);myDiv.innerText="";logDOM(myDiv);
This outputs:
<div
id="my-div"
>
<span>
I am some text
</span>
</div>
instead of what it should
<div
id="my-div"
/>
What you did:
I am trying to test xterm and found that if I set innerHTML instead then this library produces the expected results.
What happened:
The child elements were not being cleared correctly.
Reproduction:
See above
Problem description:
It is incorrect behaviour according to the spec
Suggested solution:
Maybe this is required to be fixed in jsdom instead? (I found jsdom/jsdom#1245).
I am creating this issue because xtermjs/xterm.js#4214 was closed due to security concerns.
The text was updated successfully, but these errors were encountered:
@testing-library/react
version: 12.1.5Relevant code or config:
This outputs:
instead of what it should
What you did:
I am trying to test
xterm
and found that if I setinnerHTML
instead then this library produces the expected results.What happened:
The child elements were not being cleared correctly.
Reproduction:
See above
Problem description:
It is incorrect behaviour according to the spec
Suggested solution:
Maybe this is required to be fixed in jsdom instead? (I found jsdom/jsdom#1245).
I am creating this issue because xtermjs/xterm.js#4214 was closed due to security concerns.
The text was updated successfully, but these errors were encountered: