diff options
Diffstat (limited to 'src/components/script/dom/htmlcollection.rs')
-rw-r--r-- | src/components/script/dom/htmlcollection.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/dom/htmlcollection.rs b/src/components/script/dom/htmlcollection.rs index 96e04d46d3b..221ec012bd4 100644 --- a/src/components/script/dom/htmlcollection.rs +++ b/src/components/script/dom/htmlcollection.rs @@ -39,7 +39,7 @@ impl HTMLCollection { let mut elements = ~[]; for child in root.traverse_preorder() { if child.is_element() { - let elem: JS<Element> = ElementCast::to(&child); + let elem: JS<Element> = ElementCast::to(&child).unwrap(); if predicate(&elem) { elements.push(elem); } |