Skip to content

mouseenter: Object doesn't support property or method 'contains' #17225

Closed

Description

@amk221

With "jquery-integration": false I'm getting Object doesn't support property or method 'contains' in IE11. It may have something to do with SVG.

screenshot 2018-11-22 at 12 22 49

(!related || (related !== target && !target.contains(related)))


Having to delay our jQuery-removal celebrations :)

Activity

  1. rwjblue commented on Nov 23, 2018

    @rwjblue
    Member

    Thanks for reporting!

    @simonihmig - Any ideas off the top of your head?

  2. simonihmig commented on Nov 23, 2018

    @simonihmig
    Contributor

    @amk221 I assume this was an mouseenter event, not mouseover as in your title, right?

    It may have something to do with SVG.

    Indeed. I quickly booted my VM with IE11, and it seems it doesn't support Node#contains() on SVG elements. 🙄

    I had a quick look how the jQuery-based implementation works around this, and it seams jQuery (or rather Sizzle) has a fallback implementation here: https://github.com/jquery/jquery/blob/e743cbd28553267f955f71ea7248377915613fd9/external/sizzle/dist/sizzle.js#L860-L868

    I guess we can flag this as a bug then! I can try to provide a fix hopefully soon...

  3. amk221 commented on Nov 23, 2018

    @amk221
    Author

    Ah @simonihmig, yes - thank you!

  4. changed the title [-]Mouseover Object doesn't support property or method 'contains'[/-] [+]mousenter: Object doesn't support property or method 'contains'[/+] on Nov 23, 2018
  5. changed the title [-]mousenter: Object doesn't support property or method 'contains'[/-] [+]mouseenter: Object doesn't support property or method 'contains'[/+] on Nov 23, 2018
  6. added a commit that references this issue on Nov 24, 2018
    5676c4b
  7. pixelhandler commented on Nov 30, 2018

    @pixelhandler
    Contributor

    @rwjblue @simonihmig is ie11 w/o jQuery officially supported ? if so, this is a bug correct?

  8. added a commit that references this issue on Nov 30, 2018
    82ee67f
  9. rwjblue commented on Dec 6, 2018

    @rwjblue
    Member

    Yep, updated the labels.

  10. added a commit that references this issue on Dec 6, 2018
    62d6096
  11. added a commit that references this issue on Dec 6, 2018
    e691bd0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions