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 HTMLOptionElement named constructor #25393

Merged
merged 1 commit into from Jan 3, 2020
Merged

Conversation

@teapotd
Copy link
Contributor

teapotd commented Dec 26, 2019

This change implements Option named constructor for HTMLOptionElement.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #25380
  • There are tests for these changes
@highfive
Copy link

highfive commented Dec 26, 2019

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/htmloptionelement.rs, components/script/dom/webidls/HTMLOptionElement.webidl
  • @KiChjang: components/script/dom/htmloptionelement.rs, components/script/dom/webidls/HTMLOptionElement.webidl
Copy link
Member

jdm left a comment

The rest the implementation looks sensible to me. Thanks for fixing this!

components/script/dom/htmloptionelement.rs Outdated Show resolved Hide resolved
@jdm
Copy link
Member

jdm commented Jan 3, 2020

@bors-servo try=wpt

@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2020

Trying commit 5e9bb8c with merge 4b028a7...

bors-servo added a commit that referenced this pull request Jan 3, 2020
Implement HTMLOptionElement named constructor

This change implements `Option` named constructor for `HTMLOptionElement`.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25380
- [X] There are tests for these changes
@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Jan 3, 2020

You will need to add Option to the list at

to avoid that failure.

@highfive highfive removed the S-tests-failed label Jan 3, 2020
@jdm
Copy link
Member

jdm commented Jan 3, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2020

📌 Commit 62011ad has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2020

Testing commit 62011ad with merge c9403f3...

bors-servo added a commit that referenced this pull request Jan 3, 2020
Implement HTMLOptionElement named constructor

This change implements `Option` named constructor for `HTMLOptionElement`.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25380
- [X] There are tests for these changes
@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Jan 3, 2020

+ ./mach test-tidy --no-progress --all
 0:07.99�(B INFO�(B Diffing old and new manifests /repo/tests/wpt/mozilla/meta/MANIFEST.json
 0:08.17�(B WARNING�(B Manifest /repo/tests/wpt/mozilla/meta/MANIFEST.json contains correct tests but file hashes changed.
 0:08.17�(B ERROR�(B Manifest /repo/tests/wpt/mozilla/meta/MANIFEST.json is outdated, use |./mach update-manifest| to fix.
 0:08.18�(B INFO�(B Diffing old and new manifests /repo/tests/wpt/webgl/meta/MANIFEST.json
 0:08.66�(B INFO�(B Diffing old and new manifests /repo/tests/wpt/metadata/MANIFEST.json

Whoops, this needs a ./mach update-manifest since the test file was modified.

@highfive highfive removed the S-tests-failed label Jan 3, 2020
@teapotd
Copy link
Contributor Author

teapotd commented Jan 3, 2020

Oh, sorry about that!

@jdm
Copy link
Member

jdm commented Jan 3, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2020

📌 Commit 155f69c has been approved by jdm

bors-servo added a commit that referenced this pull request Jan 3, 2020
Implement HTMLOptionElement named constructor

This change implements `Option` named constructor for `HTMLOptionElement`.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25380
- [X] There are tests for these changes
@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2020

Testing commit 155f69c with merge ea09c87...

@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Jan 3, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2020

Testing commit 155f69c with merge 598ba48...

bors-servo added a commit that referenced this pull request Jan 3, 2020
Implement HTMLOptionElement named constructor

This change implements `Option` named constructor for `HTMLOptionElement`.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25380
- [X] There are tests for these changes
@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Jan 3, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2020

Testing commit 155f69c with merge 77db7ea...

bors-servo added a commit that referenced this pull request Jan 3, 2020
Implement HTMLOptionElement named constructor

This change implements `Option` named constructor for `HTMLOptionElement`.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25380
- [X] There are tests for these changes
@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2020

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing 77db7ea to master...

@bors-servo bors-servo merged commit 155f69c into servo:master Jan 3, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
@teapotd teapotd deleted the teapotd:option-constructor branch Jan 3, 2020
bors-servo added a commit that referenced this pull request Jan 21, 2020
use create_html_element for HTMLAudioElement and HTMLImageElement

<!-- Please describe your changes on the following line: -->

Updated the Image and Audio constructors to use `create_html_element` via the Element::create method. This was done to meet these specifications of "Let (audio/image) be the result of **creating an element** given document, audio, and the HTML namespace." for [dom-image](https://html.spec.whatwg.org/multipage/embedded-content.html#dom-image) and [dom-audio](https://html.spec.whatwg.org/multipage/media.html#dom-audio)
Not sure what _is_ is according to the [create-element guidelines](https://dom.spec.whatwg.org/#concept-create-element) so I left it as None copying from #25393. Also copied the ElementCreator and CustomElementCreationMode from #25393 as I do not know what they do.

---
<!-- 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 #25421 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because it is a small swap out of the way used to generate these HTML elements. The pre-existing tests should be sufficient.

<!-- 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 pull request Jan 21, 2020
use create_html_element for HTMLAudioElement and HTMLImageElement

<!-- Please describe your changes on the following line: -->

Updated the Image and Audio constructors to use `create_html_element` via the Element::create method. This was done to meet these specifications of "Let (audio/image) be the result of **creating an element** given document, audio, and the HTML namespace." for [dom-image](https://html.spec.whatwg.org/multipage/embedded-content.html#dom-image) and [dom-audio](https://html.spec.whatwg.org/multipage/media.html#dom-audio)
Not sure what _is_ is according to the [create-element guidelines](https://dom.spec.whatwg.org/#concept-create-element) so I left it as None copying from #25393. Also copied the ElementCreator and CustomElementCreationMode from #25393 as I do not know what they do.

---
<!-- 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 #25421 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because it is a small swap out of the way used to generate these HTML elements. The pre-existing tests should be sufficient.

<!-- 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 issues

Successfully merging this pull request may close these issues.

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