aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2013-11-13 17:38:08 +0100
committerMs2ger <ms2ger@gmail.com>2013-11-13 17:38:08 +0100
commit591de8cff52463bfe7573a54e2ad2be622dfddbd (patch)
tree88481e2dcb7708cfbf9b18a9f4cb10a6104af67e /src/components/script/html/hubbub_html_parser.rs
parent4eb84496211bb48d2804a0ddcd16849536546103 (diff)
downloadservo-591de8cff52463bfe7573a54e2ad2be622dfddbd.tar.gz
servo-591de8cff52463bfe7573a54e2ad2be622dfddbd.zip
Cleanup attribute setting functions a bit.
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index 44e06eb14fc..ffde4eeba26 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -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());
}
}