diff options
Diffstat (limited to 'components/script/dom/htmloptionelement.rs')
-rw-r--r-- | components/script/dom/htmloptionelement.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmloptionelement.rs b/components/script/dom/htmloptionelement.rs index 568d991a5ce..ecd8b2d498b 100644 --- a/components/script/dom/htmloptionelement.rs +++ b/components/script/dom/htmloptionelement.rs @@ -35,15 +35,15 @@ impl HTMLOptionElementDerived for EventTarget { } impl HTMLOptionElement { - fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLOptionElement { + fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLOptionElement { HTMLOptionElement { - htmlelement: HTMLElement::new_inherited(HTMLOptionElementTypeId, localName, document) + htmlelement: HTMLElement::new_inherited(HTMLOptionElementTypeId, localName, prefix, document) } } #[allow(unrooted_must_root)] - pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLOptionElement> { - let element = HTMLOptionElement::new_inherited(localName, document); + pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLOptionElement> { + let element = HTMLOptionElement::new_inherited(localName, prefix, document); Node::reflect_node(box element, document, HTMLOptionElementBinding::Wrap) } } |