Has anyone encountered issues with the getAttribute()
function while creating an extension for Edge? I am currently facing a problem where it is not returning the attributes of the element that I am searching for.
This is what my code looks like on Edge and Chrome:
- Edge Outcome:
null
when usingdocument.head.getAttribute("data-xd-id") ;
- Chrome Outcome:
AAggv0A
when usingdocument.head.getAttribute("data-xd-id") ;
While Chrome correctly returns the expected outcome, Edge seems to deny access to these elements/IDs. Is there a workaround to this issue?
Head Details:
You can view the head markup by visiting or check it out here:
<head data-info="lots of stuff here" ... data-xd-id="AAggv0A" data-delayed-js="...