Skip to content

Change clearing innerText to using replaceChildren to fix testing using jsdom#4217

Merged
Tyriar merged 1 commit intoxtermjs:masterfrom
Nokel81:fix-dom-renderering-jsdom-v2
Oct 19, 2022
Merged

Change clearing innerText to using replaceChildren to fix testing using jsdom#4217
Tyriar merged 1 commit intoxtermjs:masterfrom
Nokel81:fix-dom-renderering-jsdom-v2

Conversation

@Nokel81
Copy link
Copy Markdown
Contributor

@Nokel81 Nokel81 commented Oct 19, 2022

Signed-off-by: Sebastian Malton [email protected]

Comment on lines -352 to -356
rowElement.innerText = '';
const row = y + this._bufferService.buffer.ydisp;
const lineData = this._bufferService.buffer.lines.get(row);
const cursorStyle = this._optionsService.rawOptions.cursorStyle;
rowElement.appendChild(this._rowFactory.createRow(lineData!, row, row === cursorAbsoluteY, cursorStyle, cursorX, cursorBlink, this.dimensions.css.cell.width, this._bufferService.cols));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks better too 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants