mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Cleanup attribute setting functions a bit.
This commit is contained in:
parent
4eb8449621
commit
591de8cff5
3 changed files with 21 additions and 29 deletions
|
@ -342,8 +342,8 @@ pub fn parse_html(cx: *JSContext,
|
|||
for attr in tag.attributes.iter() {
|
||||
element.set_attribute(node,
|
||||
namespace::Null,
|
||||
&Some(attr.name.clone()),
|
||||
&Some(attr.value.clone()));
|
||||
attr.name.clone(),
|
||||
attr.value.clone());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue