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

Allow mutating <input disabled type=checkbox/radio> #27666

Merged
merged 2 commits into from Sep 25, 2020

Conversation

ghostd
Copy link
Contributor

@ghostd ghostd commented Sep 24, 2020


  • There are tests for these changes OR
  • These changes do not require tests because ___

Comment on lines 2739 to 2742
if !self.is_mutable() &&
self.input_type() != InputType::Checkbox &&
self.input_type() != InputType::Radio
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on https://html.spec.whatwg.org/multipage/input.html#the-input-element:legacy-pre-activation-behavior it looks like this entire check can be removed instead.

Comment on lines 2780 to 2783
if !self.is_mutable() &&
self.input_type() != InputType::Checkbox &&
self.input_type() != InputType::Radio
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove this check as well.

@jdm jdm self-assigned this Sep 24, 2020
@jdm jdm added the S-needs-code-changes Changes have not yet been made that were requested by a reviewer. label Sep 24, 2020
@jdm
Copy link
Member

jdm commented Sep 24, 2020

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 15376d0 has been approved by jdm

@bors-servo
Copy link
Contributor

⌛ Testing commit 15376d0 with merge bea693d...

bors-servo added a commit that referenced this pull request Sep 24, 2020
Allow mutating <input disabled type=checkbox/radio>

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

<!-- 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
Copy link
Contributor

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Sep 25, 2020

@bors-servo retry

  • network

@bors-servo
Copy link
Contributor

⌛ Testing commit 15376d0 with merge 0baa1ea...

@bors-servo
Copy link
Contributor

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing 0baa1ea to master...

@bors-servo bors-servo merged commit 0baa1ea into servo:master Sep 25, 2020
@ghostd ghostd deleted the fix-checkbox-radio-activation branch October 9, 2020 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-needs-code-changes Changes have not yet been made that were requested by a reviewer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow mutating <input disabled type=checkbox/radio>
3 participants