diff options
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r-- | components/script/dom/htmlelement.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs index e016f7076d9..086eb6ff687 100644 --- a/components/script/dom/htmlelement.rs +++ b/components/script/dom/htmlelement.rs @@ -251,9 +251,6 @@ impl HTMLElementMethods for HTMLElement { fn Focus(&self) { // TODO: Mark the element as locked for focus and run the focusing steps. // https://html.spec.whatwg.org/multipage/#focusing-steps - if self.upcast::<Element>().focus_state() { - return; - } let document = document_from_node(self); document.begin_focus_transaction(); document.request_focus(self.upcast()); |