Skip to main content
Question

DOMParser APIs hasAttribute and getAttribute not available in FIGMA?

  • July 4, 2023
  • 1 reply
  • 310 views

Hi, I am developing a FIGMA plugin to export layer data into XML . While using DOMParser APIs in ui.html like hasAttribute and getAttribute to access XMLAttribute of a xmlElement, received an error “Exception in converting string to XMLTypeError: child.hasAttribute is not a function”. Here child is a valid XML element.
It will be great helpful to share any idea to resolve this issue?

Sample code to reproduce this issue:

Thanks in advance

This topic has been closed for replies.

1 reply

  • Author
  • 1 reply
  • July 4, 2023

Sample code