Rename the element field of the DOM Node hierarchy.

See #924
This commit is contained in:
Tetsuharu OHZEKI 2013-10-15 22:48:23 +09:00
parent fc9a3baa71
commit 776ab67905
8 changed files with 103 additions and 18 deletions

View file

@ -61,7 +61,7 @@ macro_rules! handle_htmlmediaelement(
($cx: expr, $tag:expr, $string:expr, $type_id:expr, $ctor:ident) => (
if eq_slice($tag, $string) {
let _element = @$ctor {
htmlelement: HTMLMediaElement::new($type_id, ($tag).to_str(), document)
htmlmediaelement: HTMLMediaElement::new($type_id, ($tag).to_str(), document)
};
unsafe {
return Node::as_abstract_node(cx, _element);
@ -73,7 +73,7 @@ macro_rules! handle_htmltablecellelement(
($cx: expr, $tag:expr, $string:expr, $type_id:expr, $ctor:ident) => (
if eq_slice($tag, $string) {
let _element = @$ctor {
htmlelement: HTMLTableCellElement::new($type_id, ($tag).to_str(), document)
htmltablecellelement: HTMLTableCellElement::new($type_id, ($tag).to_str(), document)
};
unsafe {
return Node::as_abstract_node(cx, _element);