Skip to content

IE11 closest polyfill with SVG elements #2900

Closed
@Alex--C

Description

@Alex--C

Since IE11 does not support Element.prototype.closest, it falls back to the included polyfill. This polyfill fails if element happens to be an SVG since SVGs do not have the parentElement property in Internet Explorer. The polyfill then tries to access undefined.parentElement.

A possible fix would be to use parentNode instead of parentElement or check whether element is undefined in the do...while loop. I don't think that this would break anything, but I don't know enough about the inner workings of bootstrap-vue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions