-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Make EventTarget Spec Compliant #34122
Comments
WPT branch: https://github.com/Ethan-Arrowood/node/tree/add-event-target-wpt @benjamingr how do I add |
You can just put them on global at the start of the test - though I would probably manually port the tests since the WPTs rely heavily on other parts of the DOM (like Element) being present |
I followed the WPT guide found at |
@Ethan-Arrowood I tried that route and it didn't work. I meant not use |
Ah I see, okay sounds good I'll scrap this stuff then and begin the conversion. Would you like me to put up a pr when I have some or all of them done? |
Sure, that would be helpful :] |
First test added @benjamingr draft pr #34169 - more will come soon 😄 |
Hey, any status/updates on this? |
I'll pin the open PR and give it some attention soon |
OK, let me know if you need any help with specifics. |
Okay i've updated that pr, hopefully it can be merged soon. @benjamingr do you have any ideas how I can be more organized in writing more WPT tests for this? The last time I tried writing more of them I realized a lot didn't really apply to Node (since they were very much DOM based). Together if we could compile a list of all the tests that would need to be transferred over id be happy to start making my way through them 😁 |
Port things that are Node based to be EventEmitter based probably |
Based on #34074 this issue tracks improving the internal EventTarget implementation to be achieve spec compliance.
From a previous comment these are some initial action items:
Unless there is a better spec document I plan on using this one as reference: https://dom.spec.whatwg.org/#interface-eventtarget
WPT: https://github.com/web-platform-tests/wpt/tree/master/dom/events
EventEmitter vs EventTarget: https://docs.google.com/document/d/1NFARs04-4U_2y6Ssw9Lqu1GMXBUM981-NO9PLJWifTI/edit#
The text was updated successfully, but these errors were encountered: