aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/webdriver_handlers.rs
diff options
context:
space:
mode:
authorDarkDrek <wackerei@gmail.com>2017-07-30 02:29:10 +0200
committerDarkDrek <wackerei@gmail.com>2017-08-02 21:51:17 +0200
commit53476f23975836aaac6a47c42e9cd514b0aa48a5 (patch)
tree6cd9fe3f03de823eb323d8b46fb6ccb0b42fba5f /components/script/webdriver_handlers.rs
parent3ef182ca36f0067c0e431addc8ee7f1343b575c4 (diff)
downloadservo-53476f23975836aaac6a47c42e9cd514b0aa48a5.tar.gz
servo-53476f23975836aaac6a47c42e9cd514b0aa48a5.zip
Replace downcast with is
Diffstat (limited to 'components/script/webdriver_handlers.rs')
-rw-r--r--components/script/webdriver_handlers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs
index bae4480d14c..c01a7d9a51a 100644
--- a/components/script/webdriver_handlers.rs
+++ b/components/script/webdriver_handlers.rs
@@ -392,7 +392,7 @@ pub fn handle_is_selected(documents: &Documents,
else if let Some(option_element) = node.downcast::<HTMLOptionElement>() {
Ok(option_element.Selected())
}
- else if let Some(_) = node.downcast::<HTMLElement>() {
+ else if node.is::<HTMLElement>() {
Ok(false) // regular elements are not selectable
} else {
Err(())