mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -37,7 +37,7 @@ pub enum AttrValue {
|
|||
}
|
||||
|
||||
impl AttrValue {
|
||||
pub fn from_tokenlist(tokens: DOMString) -> AttrValue {
|
||||
pub fn from_serialized_tokenlist(tokens: DOMString) -> AttrValue {
|
||||
let atoms = split_html_space_chars(tokens.as_slice())
|
||||
.map(|token| Atom::from_slice(token)).collect();
|
||||
AttrValue::TokenList(tokens, atoms)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue