-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Milestone
Description
The check made here:
Line 457 in 71a78cb
| if (!document.body.contains(parent)) { |
before throwing a warning is too narrow. It fails when xterm is opened inside a parent element inside a WebComponent shadow root. document.body.contains(parent) will return false, even thought the parent is fully attached and visible on the page.
Details
- Browser and browser version: Firefox 71, Chrome 79
- OS version: OS X
- xterm.js version: 4.3.0
Steps to reproduce
- Create a simple WebComponent rendering a single div
- Use Terminal.open to create a new terminal inside that div
- The warning will be produced even though the elements are fully attached and rendered