linkedom icon indicating copy to clipboard operation
linkedom copied to clipboard

RangeError: Maximum call stack size exceeded

Open lvboda opened this issue 1 year ago • 2 comments

I am consistently encountering a RangeError: Maximum call stack size exceeded error when parsing HTML that includes canvas tags, and it seems to be related specifically to these tags.
version: 0.1.34 env: browser

lvboda avatar Jul 05 '24 07:07 lvboda

test code:

(new DOMParser).parseFromString(`
 <!doctype html>
  <html lang="en">
    <head>
      <title>fake dom</title>
    </head>
    <body>
    <canvas></canvas>
    </body>
  </html>
`, 'text/html');
image
image

lvboda avatar Jul 05 '24 07:07 lvboda

we are at 0.18.4 ... you are a tad behind ...

WebReflection avatar Jul 06 '24 10:07 WebReflection