diff options
author | Josh Matthews <josh@joshmatthews.net> | 2015-01-15 13:26:44 -0500 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2015-01-28 10:16:49 +1000 |
commit | 95fc29fa0db21959df99d81cdbb9561226321d2f (patch) | |
tree | a48e171165ec155062ef13c550b2c0f72d127425 /components/script/dom/htmlcollection.rs | |
parent | ff8cbff81016c157373c1675f3eee69dd70ae544 (diff) | |
download | servo-95fc29fa0db21959df99d81cdbb9561226321d2f.tar.gz servo-95fc29fa0db21959df99d81cdbb9561226321d2f.zip |
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
Diffstat (limited to 'components/script/dom/htmlcollection.rs')
-rw-r--r-- | components/script/dom/htmlcollection.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs index 9cbff941c03..a1aa197046e 100644 --- a/components/script/dom/htmlcollection.rs +++ b/components/script/dom/htmlcollection.rs @@ -96,7 +96,7 @@ impl HTMLCollection { } let filter = TagNameFilter { tag: Atom::from_slice(tag.as_slice()), - ascii_lower_tag: Atom::from_slice(tag.as_slice().to_ascii_lower().as_slice()), + ascii_lower_tag: Atom::from_slice(tag.as_slice().to_ascii_lowercase().as_slice()), }; HTMLCollection::create(window, root, box filter) } @@ -165,12 +165,13 @@ impl HTMLCollection { } fn traverse<'a>(root: JSRef<'a, Node>) - -> FilterMap<'a, JSRef<'a, Node>, + -> FilterMap<JSRef<'a, Node>, JSRef<'a, Element>, - Skip<TreeIterator<'a>>> { + Skip<TreeIterator<'a>>, + fn(JSRef<Node>) -> Option<JSRef<Element>>> { root.traverse_preorder() .skip(1) - .filter_map(ElementCast::to_ref) + .filter_map(ElementCast::to_ref as fn(JSRef<Node>) -> Option<JSRef<Element>>) } } |