Skip to main content

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! :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:



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.


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:



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!


Reply