Help

Re: DOMParser in Scripting app

1493 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Al_Huizenga
4 - Data Explorer
4 - Data Explorer

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

2 Replies 2

Welcome to the community, @Al_Huizenga! :grinning_face_with_big_eyes: 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.

Very helpful, thanks for the quick reply!