From 26732403b99ca2550d25c2b22aee35a2cdaf3967 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Fri, 30 Jan 2015 20:34:23 +0530 Subject: Specific instances of activatable elements may not be activatable (fixes #4765 --- components/script/dom/activation.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'components/script/dom/activation.rs') diff --git a/components/script/dom/activation.rs b/components/script/dom/activation.rs index 78e3d6cd4bb..9bd7d4d8f36 100644 --- a/components/script/dom/activation.rs +++ b/components/script/dom/activation.rs @@ -17,6 +17,9 @@ use std::borrow::ToOwned; pub trait Activatable : Copy { fn as_element(&self) -> Temporary; + // 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); -- cgit v1.2.3