WebReflection / linkedom

A triple-linked lists based DOM implementation.
https://webreflection.medium.com/linkedom-a-jsdom-alternative-53dd8f699311
ISC License
1.71k stars 82 forks source link

RangeError: Maximum call stack size exceeded #280

Open lvboda opened 4 months ago

lvboda commented 4 months ago

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 commented 4 months ago

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
WebReflection commented 4 months ago

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