{"id":19205481,"url":"https://github.com/zwacky/vue2-ie11-bug","last_synced_at":"2026-03-19T08:41:58.488Z","repository":{"id":144883547,"uuid":"311658470","full_name":"zwacky/vue2-ie11-bug","owner":"zwacky","description":"when dealing with injecting vue instances into the DOM","archived":false,"fork":false,"pushed_at":"2020-11-10T14:06:09.000Z","size":331,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T06:27:31.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://zwacky.github.io/vue2-ie11-bug/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zwacky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-10T12:56:34.000Z","updated_at":"2023-03-04T06:07:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"c75f265b-420a-4b74-8cfd-4f0bdd9293e7","html_url":"https://github.com/zwacky/vue2-ie11-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zwacky/vue2-ie11-bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwacky%2Fvue2-ie11-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwacky%2Fvue2-ie11-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwacky%2Fvue2-ie11-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwacky%2Fvue2-ie11-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zwacky","download_url":"https://codeload.github.com/zwacky/vue2-ie11-bug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwacky%2Fvue2-ie11-bug/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270254474,"owners_count":24553043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T13:12:59.730Z","updated_at":"2026-02-09T23:31:13.730Z","avatar_url":"https://github.com/zwacky.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hey there 👋 I created this starter vue app repo to easily demonstrate the problem. I wasn't successful with using any jsfiddle, codepen, and all the others with IE11, so this is my last resort.\n\n## Situation\n\na big product is being migrated step by step from JSP + Prototype to Vue. Because of that, within the app there are #app ids scattered that currently will be emptied (`innerHTML = ''`) and injected (`.$mount()`) upon tab click.\n\n## Successful test on chrome\n\n- open up https://zwacky.github.io/vue2-ie11-bug/ in chrome\n- the app loads up, then gets removed, and loads up again\n- after a few ms v(1) turns into a v(2)\n\n## Error test on IE11\n\n- open up https://zwacky.github.io/vue2-ie11-bug/ in IE11\n- the app loads up, then gets removed, a console error is printed out, and loads up again\n- v(1) does not turn into v(2), because any further js execution is killed\n\nUnderlying problem: on IE11 emptying the DOM while a request is still in progress will kill the app and stop working/updating.\n\n## Interesting code parts\n\n- here happens the emptying: https://github.com/zwacky/vue2-ie11-bug/blob/master/src/main.js#L19\n- here happens the post mutation of the component's state, after the DOM has been emptied already: https://github.com/zwacky/vue2-ie11-bug/blob/master/src/components/HelloWorld.vue#L49\n\n## Related posts I found\n\n- https://forum.vuejs.org/t/internet-explorer-garbage-collection-on-removed-nodes/17144\n- https://forum.vuejs.org/t/creating-vue-instance-multiple-times-error-in-ie11/35831","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzwacky%2Fvue2-ie11-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzwacky%2Fvue2-ie11-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzwacky%2Fvue2-ie11-bug/lists"}