mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
AttrValue's s/from_tokenlist/from_serialized_tokenlist/
This commit is contained in:
parent
0e6304dcf7
commit
eb3678fa28
5 changed files with 6 additions and 6 deletions
|
@ -848,7 +848,7 @@ impl<'a> AttributeHandlers for JSRef<'a, Element> {
|
|||
|
||||
fn set_tokenlist_attribute(self, name: &Atom, value: DOMString) {
|
||||
assert!(name.as_slice() == name.as_slice().to_ascii_lower().as_slice());
|
||||
self.set_attribute(name, AttrValue::from_tokenlist(value));
|
||||
self.set_attribute(name, AttrValue::from_serialized_tokenlist(value));
|
||||
}
|
||||
|
||||
fn get_uint_attribute(self, name: &Atom) -> u32 {
|
||||
|
@ -1290,7 +1290,7 @@ impl<'a> VirtualMethods for JSRef<'a, Element> {
|
|||
fn parse_plain_attribute(&self, name: &Atom, value: DOMString) -> AttrValue {
|
||||
match name {
|
||||
&atom!("id") => AttrValue::from_atomic(value),
|
||||
&atom!("class") => AttrValue::from_tokenlist(value),
|
||||
&atom!("class") => AttrValue::from_serialized_tokenlist(value),
|
||||
_ => self.super_type().unwrap().parse_plain_attribute(name, value),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue