Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upProperly use [PutForwards] like we should in WebIDL interfaces #9990
Comments
|
Specifically, the PR looks good but is missing tests that the attributes using PutForwards do what they're supposed to. |
|
I'd like to try this. |
|
@tbu- Please do! Ask questions here if anything's unclear :) |
|
This still hasn't been done. |
|
Oops, misclick. |
|
Marking this as high-value because code like |
|
I've tried to find every location that defines a PutForwards and note its current status. The only implemented attributes with a missing PutForwards appear to be ElementCSSInlineStyle.cssText and multiple instances of .relList, although it's possible I missed a relevant spec. from WHATWG HTML:
From CSSOM:
From CSS Fonts Module:
|
|
The ElementCSSInlineStyle.cssText case has tests for it (and pass when the PutForwards is included); the .relList cases seem to be missing test coverage for PutForwards behavior. |
Add PutForwards to implemented attributes that lacked it Added PutForwards to three relLists and one style. The style already had a test; I added tests for relLists, including one relList that we have commented out right now. --- <!-- 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 - [ ] These changes advance #9990 to be caught up with the attributes we have so far; many unimplemented attributes will need PutForwards when implemented. <!-- Either: --> - [X] There are tests for these changes OR <!-- 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. -->
|
As far as I can tell, assuming the above PR merges, we will be up-to-date on [PutForwards] with respect to attributes that currently exist in Servo's IDL, and remaining lack of PutForwards behavior is because the entire attribute is unimplemented. |
Add PutForwards to implemented attributes that lacked it Added PutForwards to three relLists and one style. The style already had a test; I added tests for relLists, including one relList that we have commented out right now. --- <!-- 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 - [ ] These changes advance #9990 to be caught up with the attributes we have so far; many unimplemented attributes will need PutForwards when implemented. <!-- Either: --> - [X] There are tests for these changes OR <!-- 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. -->
Add PutForwards to implemented attributes that lacked it Added PutForwards to three relLists and one style. The style already had a test; I added tests for relLists, including one relList that we have commented out right now. --- <!-- 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 - [ ] These changes advance #9990 to be caught up with the attributes we have so far; many unimplemented attributes will need PutForwards when implemented. <!-- Either: --> - [X] There are tests for these changes OR <!-- 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. -->
Add PutForwards to implemented attributes that lacked it Added PutForwards to three relLists and one style. The style already had a test; I added tests for relLists, including one relList that we have commented out right now. --- <!-- 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 - [ ] These changes advance #9990 to be caught up with the attributes we have so far; many unimplemented attributes will need PutForwards when implemented. <!-- Either: --> - [X] There are tests for these changes OR <!-- 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. -->
|
This should be fixed now! |
See #9350.