Skip to content
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

Implement onformdata as an event handler IDL attribute #25183

Closed
pshaughn opened this issue Dec 6, 2019 · 4 comments
Closed

Implement onformdata as an event handler IDL attribute #25183

pshaughn opened this issue Dec 6, 2019 · 4 comments

Comments

@pshaughn
Copy link
Member

@pshaughn pshaughn commented Dec 6, 2019

https://html.spec.whatwg.org/multipage/webappapis.html#event-handlers-on-elements,-document-objects,-and-window-objects lists onformdata. FormDataEvent already exists thanks to @CYBAI in #22660; it just needs its matching on* attribute.

@CYBAI CYBAI added the A-content/dom label Dec 7, 2019
@CYBAI
Copy link
Collaborator

@CYBAI CYBAI commented Dec 7, 2019

I think only need to add onformdata into this interface mixin like spec said!

Code:

// https://html.spec.whatwg.org/multipage/#globaleventhandlers
[Exposed=Window]
interface mixin GlobalEventHandlers {

Test:
Should fix onformdata tests in tests/wpt/web-platform-tests/html/webappapis/scripting/events/event-handler-all-global-events.html and tests/wpt/web-platform-tests/html/dom/idlharness.https.html

@CYBAI CYBAI added the E-easy label Dec 7, 2019
@highfive
Copy link

@highfive highfive commented Dec 7, 2019

Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the #servo channel in IRC.

If you intend to work on this issue, then add @highfive: assign me to your comment, and I'll assign this to you. 😄

@xu3u4
Copy link
Contributor

@xu3u4 xu3u4 commented Dec 7, 2019

I would like to try this!
@highfive: assign me

@highfive
Copy link

@highfive highfive commented Dec 7, 2019

Hey @xu3u4! Thanks for your interest in working on this issue. It's now assigned to you!

@highfive highfive added the C-assigned label Dec 7, 2019
@xu3u4 xu3u4 mentioned this issue Dec 7, 2019
4 of 5 tasks complete
bors-servo added a commit that referenced this issue Dec 7, 2019
…dler, r=<try>

Add onformdata to GlobalEventHandlers

<!-- Please describe your changes on the following line: -->
1. Adding `onformdata` to GlobalEventHandlers interface and global_event_handlers macro.
2. Deleting related FAIL tests.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #25183 (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
bors-servo added a commit that referenced this issue Dec 10, 2019
…dler, r=jdm

Add onformdata to GlobalEventHandlers

<!-- Please describe your changes on the following line: -->
1. Adding `onformdata` to GlobalEventHandlers interface and global_event_handlers macro.
2. Deleting related FAIL tests.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #25183 (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
bors-servo added a commit that referenced this issue Dec 10, 2019
…dler, r=jdm

Add onformdata to GlobalEventHandlers

<!-- Please describe your changes on the following line: -->
1. Adding `onformdata` to GlobalEventHandlers interface and global_event_handlers macro.
2. Deleting related FAIL tests.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #25183 (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants
You can’t perform that action at this time.