aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-01-03 18:10:31 +0100
committerMs2ger <ms2ger@gmail.com>2014-01-04 18:06:57 +0100
commit4c0e7dda7b18b442e1b505dbab4e3c5488fd4b1b (patch)
tree6c28f128deee8e8f3d046f6aab782460ad65c866 /src/components/script/html/hubbub_html_parser.rs
parentcb795d814f3b4c2c9bbaecc440da77a26b3f35a0 (diff)
downloadservo-4c0e7dda7b18b442e1b505dbab4e3c5488fd4b1b.tar.gz
servo-4c0e7dda7b18b442e1b505dbab4e3c5488fd4b1b.zip
Make Element::set_attribute not lower-case the name argument.
In particular, for SetAttributeNS, we should not change the case.
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index c25a2fe7b11..94eac3b1bef 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -8,7 +8,6 @@ use dom::htmlelement::HTMLElement;
use dom::htmlheadingelement::{Heading1, Heading2, Heading3, Heading4, Heading5, Heading6};
use dom::htmliframeelement::IFrameSize;
use dom::htmlformelement::HTMLFormElement;
-use dom::namespace;
use dom::namespace::Null;
use dom::node::{AbstractNode, ElementNodeTypeId};
use dom::types::*;
@@ -336,10 +335,9 @@ pub fn parse_html(cx: *JSContext,
debug!("-- attach attrs");
do node.as_mut_element |element| {
for attr in tag.attributes.iter() {
- element.set_attribute(node,
- namespace::Null,
- attr.name.clone(),
- attr.value.clone());
+ element.set_attr(node,
+ attr.name.clone(),
+ attr.value.clone());
}
}