Closed yusufali2205 closed 4 years ago
@mhemesath please review
On logging out this element it shows [object Object]
That's what IE logs out for complex object. Elements are objects. With that said, at this point I don't have time to investigate further, and I feel like this PR is just patching a different underlying problem. Based on the code, all objects we call that method on should be objects.
On logging out this element it shows [object Object]
That's what IE logs out for complex object. Elements are objects. With that said, at this point I don't have time to investigate further, and I feel like this PR is just patching a different underlying problem. Based on the code, all objects we call that method on should be objects.
On doing alert(document.activeElement)
in IE, I see it logs HTMLBodyElement
can we get this merged?
@NSLockhart @mhemesath can you merge this?
@NSLockhart @mhemesath hoping to get this change in our current release.
Summary
We need to add an additional check on the hasAttribute property on unload. This will check to make sure hasAttribute exists before we use it.
Additional Details
Closing the application which is embedding a page is throwing error:
Object doesn't support property or method 'hasAttribute'
On logging out this element it shows[object Object]
Which doesn't look like a page element. So we need to add a check in case the variableelement
is not an html element.