Implement implicit form submission

This commit is contained in:
Manish Goregaokar 2014-11-24 21:49:55 +05:30
parent c89ec3910f
commit 6482e313d6
3 changed files with 24 additions and 3 deletions

View file

@ -25,6 +25,9 @@ pub trait Activatable : Copy {
// https://html.spec.whatwg.org/multipage/interaction.html#run-post-click-activation-steps
fn activation_behavior(&self);
// https://html.spec.whatwg.org/multipage/forms.html#implicit-submission
fn implicit_submission(&self, ctrlKey: bool, shiftKey: bool, altKey: bool, metaKey: bool);
// https://html.spec.whatwg.org/multipage/interaction.html#run-synthetic-click-activation-steps
fn synthetic_click_activation(&self, ctrlKey: bool, shiftKey: bool, altKey: bool, metaKey: bool) {
let element = self.as_element().root();