mirror of
https://github.com/servo/servo.git
synced 2025-06-13 10:54:29 +00:00
Convert element name to be stored as atom instead of string.
This commit is contained in:
parent
d97ec69957
commit
dddd3346a6
6 changed files with 57 additions and 9 deletions
|
@ -129,7 +129,7 @@ fn serialize_elem(elem: &JSRef<Element>, open_elements: &mut Vec<String>, html:
|
|||
}
|
||||
|
||||
if !elem.deref().is_void() {
|
||||
open_elements.push(elem.deref().local_name.clone());
|
||||
open_elements.push(elem.deref().local_name.as_slice().to_string());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue