Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

DOMParser in Scripting app

Topic Labels: Scripting extentions
367 2
cancel
Showing results for 
Search instead for 
Did you mean: 

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!