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
Add DateTime string attribute to Time #14086
Conversation
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @connorgbrewster (or someone else) soon. |
@chajath We generally only accept PRs that implement the full set of features as described by the HTML spec, rather than exposing interfaces to incomplete functionalities. You can either close this PR, or add more commits to it so that it conforms with the spec. |
@KiChjang What is the rest of the functionality? |
Parsing the input string into a machine-readable equivalent. Are there any WPT tests for this? |
Where do you find this needed in the spec? The spec just says that the IDL attribute reflects the content attribute, AFAICT. |
See whatwg/html#1702. |
That's for authors, not UAs, AFAICT. At the very least the current spec doesn't say to parse anything in the dateTime setter. |
Sorry about being late on a review for this... This looks good to me, unless the datetime does need to be parsed, but I don't see exactly where the spec would be saying that. I think if that is the case, it would be ok to implement that in a followup PR. Lets see what tests now pass |
[WIP] Add DateTime string attribute to Time <!-- Please describe your changes on the following line: --> --- <!-- 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 part of #12967, content parsing will come as a separate PR. <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14086) <!-- Reviewable:end -->
💥 Test timed out |
That's odd. Tests run fine on my local machine. Should we try again? |
@bors-servo try |
@bors-servo retry |
⌛ Trying commit 735d104 with merge a37fd8d... |
💔 Test failed - linux-dev |
|
@bors-servo r+ |
📌 Commit bb2d8f5 has been approved by |
…ster Add DateTime string attribute to Time <!-- Please describe your changes on the following line: --> --- <!-- 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 part of #12967, content parsing will come as a separate PR. <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14086) <!-- Reviewable:end -->
⛄ The build was interrupted to prioritize another pull request. |
⚡ Previous build results for mac-dev-unit are reusable. Rebuilding only arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-dev... |
💔 Test failed - mac-rel-wpt1 |
There are still some test expectations that need updated.
|
Also handle datetime content attribute when attribute is absent. Rephrase terms used in the test: dateTime IDL property, datetime attribute and datetime content attribute. Remove failure expectations for time element.
@bors-servo r+ |
📌 Commit 25f0317 has been approved by |
…ster Add DateTime string attribute to Time <!-- Please describe your changes on the following line: --> --- <!-- 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 part of #12967, content parsing will come as a separate PR. <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14086) <!-- Reviewable:end -->
☀️ Test successful - arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-dev |
./mach build -d
does not report any errors./mach test-tidy
does not report any errorsThis change is