-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Implementing activation behavior for <label> #8260
Conversation
@bors-servo try (ignore me, and ignore the test failure that's going to happen below, that will be caused by me canceling the build) |
Implementing activation behavior for <label> Attempt to resolve #8179 @Manishearth , could you give me some resources having more information about what each function in `Activatable` does? The code compiles on my machine but I guess a lot more is needed <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8260) <!-- Reviewable:end -->
💔 Test failed - mac-dev-ref-unit |
|
||
// https://html.spec.whatwg.org/multipage/#implicit-submission | ||
fn implicit_submission(&self, ctrlKey: bool, shiftKey: bool, altKey: bool, metaKey: bool) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a FIXME here and file an issue for investigation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would be the appropriate FIXME message / issue title?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File one, "Investigate and implement implicit submission for label elements"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this change any tests? |
See the spec links 😄 Basically, form controls, buttons, and links can be "activated". This happens when they get clicked, or sometimes when you hit the space/enter key when they are in focus. There's a lot of complications in the spec around this, and the |
@Manishearth |
No, there weren't test failures, that was an induced failure (I was testing some new infrastructure). I was talking about the wpt tests. |
What would be the correct way of checking this? I am currently running |
You can pass (Also, use the |
You probably need to change servo/components/script/dom/element.rs Line 1746 in 285e29c
|
Good point, forgot to check for that. |
19e1a0d
to
da57e5e
Compare
@Manishearth What change will be needed in that file? |
Add a case to HTMLLabelElement to that match |
da57e5e
to
c763010
Compare
|
||
// https://html.spec.whatwg.org/multipage/#implicit-submission | ||
fn implicit_submission(&self, ctrlKey: bool, shiftKey: bool, altKey: bool, metaKey: bool) { | ||
//FIXME: Investigate and implement implicit submission for label elements |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you file a bug for this and refer to the bug number here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean update the fixme comment here to point to that
@bors-servo try Let's see if there are test issues |
⌛ Trying commit c763010 with merge 3331e0a... |
Implementing activation behavior for <label> Attempt to resolve #8179 @Manishearth , could you give me some resources having more information about what each function in `Activatable` does? The code compiles on my machine but I guess a lot more is needed <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8260) <!-- Reviewable:end -->
Small nit, then r=me unless there are test failures |
💔 Test failed - mac-rel-wpt |
|
c763010
to
af91c98
Compare
@bors-servo: r=Manishearth |
📌 Commit af91c98 has been approved by |
Implementing activation behavior for <label> Attempt to resolve #8179 @Manishearth , could you give me some resources having more information about what each function in `Activatable` does? The code compiles on my machine but I guess a lot more is needed <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8260) <!-- Reviewable:end -->
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
Attempt to resolve #8179
@Manishearth , could you give me some resources having more information about what each function in
Activatable
does? The code compiles on my machine but I guess a lot more is needed