Skip to main content
Question

DOMParser APIs hasAttribute and getAttribute not available in FIGMA?

  • July 4, 2023
  • 1 reply
  • 291 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.

Sample code


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings