Skip to content

Do not fire invalid event on form elements#27174

Merged
bors-servo merged 1 commit intoservo:masterfrom
muodov:form-invalid-event-removal
Jul 5, 2020
Merged

Do not fire invalid event on form elements#27174
bors-servo merged 1 commit intoservo:masterfrom
muodov:form-invalid-event-removal

Conversation

@muodov
Copy link
Copy Markdown
Contributor

@muodov muodov commented Jul 4, 2020

This is a follow-up to my previous PR suggested by @gterzian.

invalid event on the <form> element has been recently removed from the spec.


@highfive
Copy link
Copy Markdown

highfive commented Jul 4, 2020

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @asajeffrey (or someone else) soon.

@highfive
Copy link
Copy Markdown

highfive commented Jul 4, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/htmlformelement.rs
  • @KiChjang: components/script/dom/htmlformelement.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 4, 2020
@muodov muodov changed the title Remove invalid event on a form element Do not fire invalid event on form elements Jul 4, 2020
@gterzian
Copy link
Copy Markdown
Member

gterzian commented Jul 5, 2020

Thanks! Re closing the issue, we might want to keep it open regarding checkValidity and others, depending on the outcome of the discussion.

This is a follow-up to my previous PR suggested by @gterzian.

It's better not to @ mention people in the opening statement of the PR, because if you do that, that person gets a lot of notifications as part of the bors merge process...

@bors-servo r+

@bors-servo
Copy link
Copy Markdown
Contributor

📌 Commit 7fd903c has been approved by gterzian

@highfive highfive assigned gterzian and unassigned asajeffrey Jul 5, 2020
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jul 5, 2020
@bors-servo
Copy link
Copy Markdown
Contributor

⌛ Testing commit 7fd903c with merge 154c68a...

bors-servo added a commit that referenced this pull request Jul 5, 2020
Do not fire `invalid` event on form elements

This is a follow-up to my [previous PR](#27100) suggested by @gterzian.

`invalid` event on the `<form>` element has been [recently removed](whatwg/html#4626) from the spec.

---
<!-- 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 #27133

<!-- Either: -->
- [x] [WPT test](https://github.com/servo/servo/blob/master/tests/wpt/web-platform-tests/html/semantics/forms/form-submission-0/historical.window.js) marked as passing
@bors-servo
Copy link
Copy Markdown
Contributor

💡 This pull request was already approved, no need to approve it again.

  • This pull request is currently being tested. If there's no response from the continuous integration service, you may use retry to trigger a build again.

@bors-servo
Copy link
Copy Markdown
Contributor

📌 Commit 7fd903c has been approved by gterzian

@bors-servo
Copy link
Copy Markdown
Contributor

⌛ Testing commit 7fd903c with merge d93e67a...

@bors-servo
Copy link
Copy Markdown
Contributor

☀️ Test successful - status-taskcluster
Approved by: gterzian
Pushing d93e67a to master...

@bors-servo bors-servo merged commit d93e67a into servo:master Jul 5, 2020
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 5, 2020
@muodov muodov deleted the form-invalid-event-removal branch July 5, 2020 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve spec compliance of validity check

5 participants