mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove usage of the deprecated OwnedAsciiExt
This commit is contained in:
parent
85aa1658cc
commit
6737be1fb1
5 changed files with 7 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue