Remove usage of the deprecated OwnedAsciiExt

This commit is contained in:
Simon Sapin 2015-07-30 17:56:19 +02:00
parent 85aa1658cc
commit 6737be1fb1
5 changed files with 7 additions and 7 deletions

View file

@ -104,9 +104,10 @@ macro_rules! make_enumerated_getter(
use dom::bindings::codegen::InheritTypes::ElementCast;
use string_cache::Atom;
use std::borrow::ToOwned;
use std::ascii::AsciiExt;
let element = ElementCast::from_ref(self);
let val = element.get_string_attribute(&Atom::from_slice($htmlname))
.into_ascii_lowercase();
let mut val = element.get_string_attribute(&Atom::from_slice($htmlname));
val.make_ascii_lowercase();
// https://html.spec.whatwg.org/multipage/#attr-fs-method
match &*val {
$($choices)|+ => val,