Make Element::set_attribute not lower-case the name argument.

In particular, for SetAttributeNS, we should not change the case.
This commit is contained in:
Ms2ger 2014-01-03 18:10:31 +01:00
parent cb795d814f
commit 4c0e7dda7b
2 changed files with 7 additions and 7 deletions

View file

@ -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());
}
}