mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
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:
parent
cb795d814f
commit
4c0e7dda7b
2 changed files with 7 additions and 7 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue