mirror of
https://github.com/servo/servo.git
synced 2025-10-07 20:19:21 +01:00
Return slices from get_attribute_parts.
This commit is contained in:
parent
1c61963b51
commit
1d27e96eca
2 changed files with 13 additions and 10 deletions
|
@ -462,9 +462,10 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
|||
}
|
||||
|
||||
if ns == namespace::HTML {
|
||||
Ok(build_element_from_tag(local_name_from_qname, ns, self))
|
||||
Ok(build_element_from_tag(local_name_from_qname.to_string(), ns, self))
|
||||
} else {
|
||||
Ok(Element::new(local_name_from_qname, ns, prefix_from_qname, self))
|
||||
Ok(Element::new(local_name_from_qname.to_string(), ns,
|
||||
prefix_from_qname.map(|s| s.to_string()), self))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue