Specific instances of activatable elements may not be activatable (fixes #4765

This commit is contained in:
Manish Goregaokar 2015-01-30 20:34:23 +05:30
parent a7e29939a1
commit 26732403b9
3 changed files with 20 additions and 1 deletions

View file

@ -17,6 +17,9 @@ use std::borrow::ToOwned;
pub trait Activatable : Copy {
fn as_element(&self) -> Temporary<Element>;
// Is this particular instance of the element activatable?
fn is_instance_activatable(&self) -> bool;
// https://html.spec.whatwg.org/multipage/interaction.html#run-pre-click-activation-steps
fn pre_click_activation(&self);