Skip to main content

DOMParser in Scripting app

  • November 12, 2021
  • 2 replies
  • 55 views

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

Justin_Barrett
Forum|alt.badge.img+21
  • Inspiring
  • 4647 replies
  • November 12, 2021

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.


  • Author
  • New Participant
  • 1 reply
  • November 12, 2021

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!