diff options
author | Gilles Leblanc <gilles.leblanc@gmail.com> | 2014-10-06 22:49:49 -0400 |
---|---|---|
committer | Gilles Leblanc <gilles.leblanc@gmail.com> | 2014-10-06 22:49:49 -0400 |
commit | 3a5a66d54e459deb9ead7f8b8760449e9e5faa94 (patch) | |
tree | 04e8f2ae33f499e990727b1a841559a203e79fa9 /components/script/dom/htmllegendelement.rs | |
parent | 0549ed3c675d1cc7a8832128e90b7886e3c1710c (diff) | |
download | servo-3a5a66d54e459deb9ead7f8b8760449e9e5faa94.tar.gz servo-3a5a66d54e459deb9ead7f8b8760449e9e5faa94.zip |
Take the prefix from createElementNS into account for HTML elements
Fixes #3139
Diffstat (limited to 'components/script/dom/htmllegendelement.rs')
-rw-r--r-- | components/script/dom/htmllegendelement.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmllegendelement.rs b/components/script/dom/htmllegendelement.rs index 72a7415bfe5..86bf81ca7ec 100644 --- a/components/script/dom/htmllegendelement.rs +++ b/components/script/dom/htmllegendelement.rs @@ -26,15 +26,15 @@ impl HTMLLegendElementDerived for EventTarget { } impl HTMLLegendElement { - fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLLegendElement { + fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLLegendElement { HTMLLegendElement { - htmlelement: HTMLElement::new_inherited(HTMLLegendElementTypeId, localName, document) + htmlelement: HTMLElement::new_inherited(HTMLLegendElementTypeId, localName, prefix, document) } } #[allow(unrooted_must_root)] - pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLLegendElement> { - let element = HTMLLegendElement::new_inherited(localName, document); + pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLLegendElement> { + let element = HTMLLegendElement::new_inherited(localName, prefix, document); Node::reflect_node(box element, document, HTMLLegendElementBinding::Wrap) } } |