What's wrong with DOMParser?

Hi, I am trying to use DOMParser API in notebook, but got an error:
RuntimeError: DOMParser is not defined
What’s wrong with this?
See https://beta.observablehq.com/@alexbol99/domparser-is-not-defined

Maybe

parser = new window.DOMParser()
1 Like

Yes, surely.
Thank you @severo!