Giter VIP home page Giter VIP logo

Comments (8)

flatiron32 avatar flatiron32 commented on September 27, 2024 1

This was in a unit test environment setup by jest with testEnvironment: 'jest-environment-jsdom-global' set. I would expect that to behave the same as your test. I might need to dig some more. Thank you.

from nise.

stale avatar stale commented on September 27, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from nise.

fatso83 avatar fatso83 commented on September 27, 2024

Maybe you are able to dig up something a bit more definitive in the specs? https://xhr.spec.whatwg.org/#event-handlers

from nise.

stale avatar stale commented on September 27, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from nise.

fatso83 avatar fatso83 commented on September 27, 2024

OK, looked into this, and while you are right about what it should do, to me it seems like it already does! Here is a full repro showing that the test does not fail: https://runkit.com/fatso83/nise-109

That is using JSDOM, mind you, which is making it more complex and can hide actual issues. Which browser are you seeing any errors in?

from nise.

fatso83 avatar fatso83 commented on September 27, 2024

These are the references I asked for, btw:

And they basically just verify what you said. target should be set.

from nise.

fatso83 avatar fatso83 commented on September 27, 2024

Jest is using JSDOM under the covers, AFAIK, so it should do the same. I don't know if version differences should mean anything. Please report back if you do find out - bug or not :)

from nise.

stale avatar stale commented on September 27, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from nise.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.