diff options
author | bors-servo <release+servo@mozilla.com> | 2014-03-20 10:58:36 -0400 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-03-20 10:58:36 -0400 |
commit | 831712206865e2c0516009b16e2ac60f754dd1a8 (patch) | |
tree | cd83699b72467929a42f98c75158104a4f860136 /src/components/script/dom/htmlcollection.rs | |
parent | 2fb8c84baceee09c2127898cd7f9d3a8e0011cce (diff) | |
parent | 0fccf5e386d2a7d98dfcbaf5b4871fd7d93e887d (diff) | |
download | servo-831712206865e2c0516009b16e2ac60f754dd1a8.tar.gz servo-831712206865e2c0516009b16e2ac60f754dd1a8.zip |
auto merge of #1864 : saneyuki/servo/split_cast_to, r=jdm
fix #1836
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); } |