diff --git a/packages/codemirror/html.mjs b/packages/codemirror/html.mjs
index 527275ef6..f240059d3 100644
--- a/packages/codemirror/html.mjs
+++ b/packages/codemirror/html.mjs
@@ -1,6 +1,7 @@
-const parser = typeof DOMParser !== 'undefined' ? new DOMParser() : null;
export let html = (string) => {
- return parser?.parseFromString(string, 'text/html').querySelectorAll('*');
+ const template = document.createElement('template');
+ template.innerHTML = string.trim();
+ return template.content.childNodes;
};
let parseChunk = (chunk) => {
if (Array.isArray(chunk)) return chunk.flat().join('');
diff --git a/website/src/repl/Repl.css b/website/src/repl/Repl.css
index 9cf51ff85..b5cd34d81 100644
--- a/website/src/repl/Repl.css
+++ b/website/src/repl/Repl.css
@@ -80,6 +80,8 @@
min-width: 300px !important;
max-height: 400px !important;
background-color: var(--lineHighlight) !important;
+ overflow: auto;
+ background: var(--background) !important;
}
/* Main tooltip container */
@@ -91,7 +93,7 @@
font-size: var(--font-size, 13px);
line-height: 1.4;
max-width: 600px;
- max-height: 400px;
+ height: 100%;
min-width: 400px;
white-space: normal !important;
overflow-y: auto !important;