DOMParser in Scripting app

Can I just get a confirmation that DOMParser isn’t supported in the Scripting app?

I’m trying this:

let parser = new DOMParser();
let html = parser.parseFromString(htmlString,"text/xml");

And getting this:

ReferenceError: DOMParser is not defined

Welcome to the community, @Al_Huizenga! :smiley: That’s correct. If you see the red squiggly underline below something in a script that you’re editing in Airtable, that’s an immediate indicator that something is amiss. Hover over that item and a popup will appear sharing more details about what’s wrong. In this case, the message confirms that DOMParser isn’t recognized:

Screen Shot 2021-11-12 at 1.15.48 PM

Because Airtable’s scripting API—in both the Scripting app and in automation scripting actions—is focused on letting users interact with Airtable data, things related to the DOM aren’t going to work.

1 Like

Very helpful, thanks for the quick reply!