Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle the case when observed node placed inside of detached iframe in ie11 #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pyxarez
Copy link

@pyxarez pyxarez commented Aug 8, 2018

There is the case when node that should be observed placed inside of iframe that will be detached in some cases. In Chrome it will work just fine because defaultView there becomes null, but in ie it gets the following structure
image
That case leads to the error in the isSVGGraphicsElement function due to the lack of SVGElement(as well as other properties)
image
When getWindowOf returns the window with undefined properties the next step "target instanceof getWindowOf(target).SVGElement" raise an error

@pyxarez pyxarez force-pushed the Fix/IE11-detached-iframe-default-view branch from 7febdd2 to 387220c Compare August 8, 2018 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant