aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/document.rs7
-rw-r--r--components/script/dom/domimplementation.rs8
-rw-r--r--components/script/dom/htmlanchorelement.rs8
-rw-r--r--components/script/dom/htmlappletelement.rs8
-rw-r--r--components/script/dom/htmlareaelement.rs8
-rw-r--r--components/script/dom/htmlaudioelement.rs8
-rw-r--r--components/script/dom/htmlbaseelement.rs8
-rw-r--r--components/script/dom/htmlbodyelement.rs8
-rw-r--r--components/script/dom/htmlbrelement.rs8
-rw-r--r--components/script/dom/htmlbuttonelement.rs8
-rw-r--r--components/script/dom/htmlcanvaselement.rs8
-rw-r--r--components/script/dom/htmldataelement.rs8
-rw-r--r--components/script/dom/htmldatalistelement.rs8
-rw-r--r--components/script/dom/htmldirectoryelement.rs8
-rw-r--r--components/script/dom/htmldivelement.rs8
-rw-r--r--components/script/dom/htmldlistelement.rs8
-rw-r--r--components/script/dom/htmlelement.rs8
-rw-r--r--components/script/dom/htmlembedelement.rs8
-rw-r--r--components/script/dom/htmlfieldsetelement.rs8
-rw-r--r--components/script/dom/htmlfontelement.rs8
-rw-r--r--components/script/dom/htmlformelement.rs8
-rw-r--r--components/script/dom/htmlframeelement.rs8
-rw-r--r--components/script/dom/htmlframesetelement.rs8
-rw-r--r--components/script/dom/htmlheadelement.rs8
-rw-r--r--components/script/dom/htmlheadingelement.rs8
-rw-r--r--components/script/dom/htmlhrelement.rs8
-rw-r--r--components/script/dom/htmlhtmlelement.rs8
-rw-r--r--components/script/dom/htmliframeelement.rs8
-rw-r--r--components/script/dom/htmlimageelement.rs8
-rw-r--r--components/script/dom/htmlinputelement.rs8
-rw-r--r--components/script/dom/htmllabelelement.rs8
-rw-r--r--components/script/dom/htmllegendelement.rs8
-rw-r--r--components/script/dom/htmllielement.rs8
-rw-r--r--components/script/dom/htmllinkelement.rs8
-rw-r--r--components/script/dom/htmlmapelement.rs8
-rw-r--r--components/script/dom/htmlmediaelement.rs4
-rw-r--r--components/script/dom/htmlmetaelement.rs8
-rw-r--r--components/script/dom/htmlmeterelement.rs8
-rw-r--r--components/script/dom/htmlmodelement.rs8
-rw-r--r--components/script/dom/htmlobjectelement.rs8
-rw-r--r--components/script/dom/htmlolistelement.rs8
-rw-r--r--components/script/dom/htmloptgroupelement.rs8
-rw-r--r--components/script/dom/htmloptionelement.rs8
-rw-r--r--components/script/dom/htmloutputelement.rs8
-rw-r--r--components/script/dom/htmlparagraphelement.rs8
-rw-r--r--components/script/dom/htmlparamelement.rs8
-rw-r--r--components/script/dom/htmlpreelement.rs8
-rw-r--r--components/script/dom/htmlprogresselement.rs8
-rw-r--r--components/script/dom/htmlquoteelement.rs8
-rw-r--r--components/script/dom/htmlscriptelement.rs8
-rw-r--r--components/script/dom/htmlselectelement.rs8
-rw-r--r--components/script/dom/htmlsourceelement.rs8
-rw-r--r--components/script/dom/htmlspanelement.rs8
-rw-r--r--components/script/dom/htmlstyleelement.rs8
-rw-r--r--components/script/dom/htmltablecaptionelement.rs8
-rw-r--r--components/script/dom/htmltablecellelement.rs4
-rw-r--r--components/script/dom/htmltablecolelement.rs8
-rw-r--r--components/script/dom/htmltabledatacellelement.rs8
-rw-r--r--components/script/dom/htmltableelement.rs8
-rw-r--r--components/script/dom/htmltableheadercellelement.rs8
-rw-r--r--components/script/dom/htmltablerowelement.rs8
-rw-r--r--components/script/dom/htmltablesectionelement.rs8
-rw-r--r--components/script/dom/htmltemplateelement.rs8
-rw-r--r--components/script/dom/htmltextareaelement.rs8
-rw-r--r--components/script/dom/htmltimeelement.rs8
-rw-r--r--components/script/dom/htmltitleelement.rs8
-rw-r--r--components/script/dom/htmltrackelement.rs8
-rw-r--r--components/script/dom/htmlulistelement.rs8
-rw-r--r--components/script/dom/htmlunknownelement.rs8
-rw-r--r--components/script/dom/htmlvideoelement.rs8
-rw-r--r--components/script/dom/node.rs2
71 files changed, 277 insertions, 276 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 8a7ae10dd7d..e2c95bf56b9 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -486,7 +486,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
return Err(InvalidCharacter);
}
let local_name = local_name.as_slice().to_ascii_lower();
- Ok(build_element_from_tag(local_name, ns!(HTML), self))
+ Ok(build_element_from_tag(local_name, ns!(HTML), None, self))
}
// http://dom.spec.whatwg.org/#dom-document-createelementns
@@ -530,7 +530,8 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
}
if ns == ns!(HTML) {
- Ok(build_element_from_tag(local_name_from_qname.to_string(), ns, self))
+ Ok(build_element_from_tag(local_name_from_qname.to_string(), ns,
+ prefix_from_qname.map(|s| s.to_string()), self))
} else {
Ok(Element::new(local_name_from_qname.to_string(), ns,
prefix_from_qname.map(|s| s.to_string()), self))
@@ -679,7 +680,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
}
},
None => {
- let new_title = HTMLTitleElement::new("title".to_string(), self).root();
+ let new_title = HTMLTitleElement::new("title".to_string(), None, self).root();
let new_title: JSRef<Node> = NodeCast::from_ref(*new_title);
if !title.is_empty() {
diff --git a/components/script/dom/domimplementation.rs b/components/script/dom/domimplementation.rs
index 642de0713a6..bd3c2aec743 100644
--- a/components/script/dom/domimplementation.rs
+++ b/components/script/dom/domimplementation.rs
@@ -131,13 +131,13 @@ impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> {
{
// Step 4.
- let doc_html: Root<Node> = NodeCast::from_temporary(HTMLHtmlElement::new("html".to_string(), *doc)).root();
+ let doc_html: Root<Node> = NodeCast::from_temporary(HTMLHtmlElement::new("html".to_string(), None, *doc)).root();
let doc_html = doc_html.deref();
assert!(doc_node.AppendChild(*doc_html).is_ok());
{
// Step 5.
- let doc_head: Root<Node> = NodeCast::from_temporary(HTMLHeadElement::new("head".to_string(), *doc)).root();
+ let doc_head: Root<Node> = NodeCast::from_temporary(HTMLHeadElement::new("head".to_string(), None, *doc)).root();
let doc_head = doc_head.deref();
assert!(doc_html.AppendChild(*doc_head).is_ok());
@@ -146,7 +146,7 @@ impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> {
None => (),
Some(title_str) => {
// Step 6.1.
- let doc_title: Root<Node> = NodeCast::from_temporary(HTMLTitleElement::new("title".to_string(), *doc)).root();
+ let doc_title: Root<Node> = NodeCast::from_temporary(HTMLTitleElement::new("title".to_string(), None, *doc)).root();
let doc_title = doc_title.deref();
assert!(doc_head.AppendChild(*doc_title).is_ok());
@@ -159,7 +159,7 @@ impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> {
}
// Step 7.
- let doc_body: Root<HTMLBodyElement> = HTMLBodyElement::new("body".to_string(), *doc).root();
+ let doc_body: Root<HTMLBodyElement> = HTMLBodyElement::new("body".to_string(), None, *doc).root();
let doc_body = doc_body.deref();
assert!(doc_html.AppendChild(NodeCast::from_ref(*doc_body)).is_ok());
}
diff --git a/components/script/dom/htmlanchorelement.rs b/components/script/dom/htmlanchorelement.rs
index e182e8170b3..74ab2976456 100644
--- a/components/script/dom/htmlanchorelement.rs
+++ b/components/script/dom/htmlanchorelement.rs
@@ -34,15 +34,15 @@ impl HTMLAnchorElementDerived for EventTarget {
}
impl HTMLAnchorElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLAnchorElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLAnchorElement {
HTMLAnchorElement {
- htmlelement: HTMLElement::new_inherited(HTMLAnchorElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLAnchorElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLAnchorElement> {
- let element = HTMLAnchorElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLAnchorElement> {
+ let element = HTMLAnchorElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLAnchorElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlappletelement.rs b/components/script/dom/htmlappletelement.rs
index ce8e8f70f8a..b40bc50bc67 100644
--- a/components/script/dom/htmlappletelement.rs
+++ b/components/script/dom/htmlappletelement.rs
@@ -26,15 +26,15 @@ impl HTMLAppletElementDerived for EventTarget {
}
impl HTMLAppletElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLAppletElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLAppletElement {
HTMLAppletElement {
- htmlelement: HTMLElement::new_inherited(HTMLAppletElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLAppletElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLAppletElement> {
- let element = HTMLAppletElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLAppletElement> {
+ let element = HTMLAppletElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLAppletElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlareaelement.rs b/components/script/dom/htmlareaelement.rs
index 892850ed94c..57c3fe883d4 100644
--- a/components/script/dom/htmlareaelement.rs
+++ b/components/script/dom/htmlareaelement.rs
@@ -27,15 +27,15 @@ impl HTMLAreaElementDerived for EventTarget {
}
impl HTMLAreaElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLAreaElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLAreaElement {
HTMLAreaElement {
- htmlelement: HTMLElement::new_inherited(HTMLAreaElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLAreaElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLAreaElement> {
- let element = HTMLAreaElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLAreaElement> {
+ let element = HTMLAreaElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLAreaElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlaudioelement.rs b/components/script/dom/htmlaudioelement.rs
index b8e73266e5b..0d419c40338 100644
--- a/components/script/dom/htmlaudioelement.rs
+++ b/components/script/dom/htmlaudioelement.rs
@@ -26,15 +26,15 @@ impl HTMLAudioElementDerived for EventTarget {
}
impl HTMLAudioElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLAudioElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLAudioElement {
HTMLAudioElement {
- htmlmediaelement: HTMLMediaElement::new_inherited(HTMLAudioElementTypeId, localName, document)
+ htmlmediaelement: HTMLMediaElement::new_inherited(HTMLAudioElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLAudioElement> {
- let element = HTMLAudioElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLAudioElement> {
+ let element = HTMLAudioElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLAudioElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlbaseelement.rs b/components/script/dom/htmlbaseelement.rs
index 1ed0d2035de..1a9d0e833bd 100644
--- a/components/script/dom/htmlbaseelement.rs
+++ b/components/script/dom/htmlbaseelement.rs
@@ -26,15 +26,15 @@ impl HTMLBaseElementDerived for EventTarget {
}
impl HTMLBaseElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLBaseElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLBaseElement {
HTMLBaseElement {
- htmlelement: HTMLElement::new_inherited(HTMLBaseElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLBaseElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLBaseElement> {
- let element = HTMLBaseElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLBaseElement> {
+ let element = HTMLBaseElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLBaseElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs
index 764be50c83f..9fcc47b16ec 100644
--- a/components/script/dom/htmlbodyelement.rs
+++ b/components/script/dom/htmlbodyelement.rs
@@ -33,15 +33,15 @@ impl HTMLBodyElementDerived for EventTarget {
}
impl HTMLBodyElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLBodyElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLBodyElement {
HTMLBodyElement {
- htmlelement: HTMLElement::new_inherited(HTMLBodyElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLBodyElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLBodyElement> {
- let element = HTMLBodyElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLBodyElement> {
+ let element = HTMLBodyElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLBodyElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlbrelement.rs b/components/script/dom/htmlbrelement.rs
index ce8997cbf73..4585c433ae2 100644
--- a/components/script/dom/htmlbrelement.rs
+++ b/components/script/dom/htmlbrelement.rs
@@ -26,15 +26,15 @@ impl HTMLBRElementDerived for EventTarget {
}
impl HTMLBRElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLBRElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLBRElement {
HTMLBRElement {
- htmlelement: HTMLElement::new_inherited(HTMLBRElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLBRElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLBRElement> {
- let element = HTMLBRElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLBRElement> {
+ let element = HTMLBRElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLBRElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlbuttonelement.rs b/components/script/dom/htmlbuttonelement.rs
index 01a1e513748..9c99f3bcc9e 100644
--- a/components/script/dom/htmlbuttonelement.rs
+++ b/components/script/dom/htmlbuttonelement.rs
@@ -32,15 +32,15 @@ impl HTMLButtonElementDerived for EventTarget {
}
impl HTMLButtonElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLButtonElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLButtonElement {
HTMLButtonElement {
- htmlelement: HTMLElement::new_inherited(HTMLButtonElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLButtonElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLButtonElement> {
- let element = HTMLButtonElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLButtonElement> {
+ let element = HTMLButtonElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLButtonElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlcanvaselement.rs b/components/script/dom/htmlcanvaselement.rs
index 09cd40022ef..3f7d11531bc 100644
--- a/components/script/dom/htmlcanvaselement.rs
+++ b/components/script/dom/htmlcanvaselement.rs
@@ -44,9 +44,9 @@ impl HTMLCanvasElementDerived for EventTarget {
}
impl HTMLCanvasElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLCanvasElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLCanvasElement {
HTMLCanvasElement {
- htmlelement: HTMLElement::new_inherited(HTMLCanvasElementTypeId, localName, document),
+ htmlelement: HTMLElement::new_inherited(HTMLCanvasElementTypeId, localName, prefix, document),
context: Default::default(),
width: Cell::new(DefaultWidth),
height: Cell::new(DefaultHeight),
@@ -54,8 +54,8 @@ impl HTMLCanvasElement {
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLCanvasElement> {
- let element = HTMLCanvasElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLCanvasElement> {
+ let element = HTMLCanvasElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLCanvasElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmldataelement.rs b/components/script/dom/htmldataelement.rs
index 180ef7bb5d2..aeafde6d06e 100644
--- a/components/script/dom/htmldataelement.rs
+++ b/components/script/dom/htmldataelement.rs
@@ -26,15 +26,15 @@ impl HTMLDataElementDerived for EventTarget {
}
impl HTMLDataElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDataElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLDataElement {
HTMLDataElement {
- htmlelement: HTMLElement::new_inherited(HTMLDataElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLDataElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLDataElement> {
- let element = HTMLDataElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLDataElement> {
+ let element = HTMLDataElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLDataElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmldatalistelement.rs b/components/script/dom/htmldatalistelement.rs
index 491fe958ab9..9c57a7176ff 100644
--- a/components/script/dom/htmldatalistelement.rs
+++ b/components/script/dom/htmldatalistelement.rs
@@ -29,15 +29,15 @@ impl HTMLDataListElementDerived for EventTarget {
}
impl HTMLDataListElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDataListElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLDataListElement {
HTMLDataListElement {
- htmlelement: HTMLElement::new_inherited(HTMLDataListElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLDataListElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLDataListElement> {
- let element = HTMLDataListElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLDataListElement> {
+ let element = HTMLDataListElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLDataListElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmldirectoryelement.rs b/components/script/dom/htmldirectoryelement.rs
index fc7ea59a58b..b55bd539781 100644
--- a/components/script/dom/htmldirectoryelement.rs
+++ b/components/script/dom/htmldirectoryelement.rs
@@ -26,15 +26,15 @@ impl HTMLDirectoryElementDerived for EventTarget {
}
impl HTMLDirectoryElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDirectoryElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLDirectoryElement {
HTMLDirectoryElement {
- htmlelement: HTMLElement::new_inherited(HTMLDirectoryElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLDirectoryElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLDirectoryElement> {
- let element = HTMLDirectoryElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLDirectoryElement> {
+ let element = HTMLDirectoryElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLDirectoryElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmldivelement.rs b/components/script/dom/htmldivelement.rs
index c1d3ed3d26b..c164beec7d0 100644
--- a/components/script/dom/htmldivelement.rs
+++ b/components/script/dom/htmldivelement.rs
@@ -26,15 +26,15 @@ impl HTMLDivElementDerived for EventTarget {
}
impl HTMLDivElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDivElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLDivElement {
HTMLDivElement {
- htmlelement: HTMLElement::new_inherited(HTMLDivElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLDivElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLDivElement> {
- let element = HTMLDivElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLDivElement> {
+ let element = HTMLDivElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLDivElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmldlistelement.rs b/components/script/dom/htmldlistelement.rs
index 72a5fa360f3..d107a277faf 100644
--- a/components/script/dom/htmldlistelement.rs
+++ b/components/script/dom/htmldlistelement.rs
@@ -26,15 +26,15 @@ impl HTMLDListElementDerived for EventTarget {
}
impl HTMLDListElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDListElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLDListElement {
HTMLDListElement {
- htmlelement: HTMLElement::new_inherited(HTMLDListElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLDListElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLDListElement> {
- let element = HTMLDListElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLDListElement> {
+ let element = HTMLDListElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLDListElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs
index 96c3af3a8fd..c1489fa02ad 100644
--- a/components/script/dom/htmlelement.rs
+++ b/components/script/dom/htmlelement.rs
@@ -37,15 +37,15 @@ impl HTMLElementDerived for EventTarget {
}
impl HTMLElement {
- pub fn new_inherited(type_id: ElementTypeId, tag_name: DOMString, document: JSRef<Document>) -> HTMLElement {
+ pub fn new_inherited(type_id: ElementTypeId, tag_name: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLElement {
HTMLElement {
- element: Element::new_inherited(type_id, tag_name, ns!(HTML), None, document)
+ element: Element::new_inherited(type_id, tag_name, ns!(HTML), prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLElement> {
- let element = HTMLElement::new_inherited(HTMLElementTypeId, localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLElement> {
+ let element = HTMLElement::new_inherited(HTMLElementTypeId, localName, prefix, document);
Node::reflect_node(box element, document, HTMLElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlembedelement.rs b/components/script/dom/htmlembedelement.rs
index e60f6a2ea80..587a0d375f3 100644
--- a/components/script/dom/htmlembedelement.rs
+++ b/components/script/dom/htmlembedelement.rs
@@ -26,15 +26,15 @@ impl HTMLEmbedElementDerived for EventTarget {
}
impl HTMLEmbedElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLEmbedElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLEmbedElement {
HTMLEmbedElement {
- htmlelement: HTMLElement::new_inherited(HTMLEmbedElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLEmbedElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLEmbedElement> {
- let element = HTMLEmbedElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLEmbedElement> {
+ let element = HTMLEmbedElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLEmbedElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlfieldsetelement.rs b/components/script/dom/htmlfieldsetelement.rs
index 2d5188b644e..59434894622 100644
--- a/components/script/dom/htmlfieldsetelement.rs
+++ b/components/script/dom/htmlfieldsetelement.rs
@@ -34,15 +34,15 @@ impl HTMLFieldSetElementDerived for EventTarget {
}
impl HTMLFieldSetElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFieldSetElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLFieldSetElement {
HTMLFieldSetElement {
- htmlelement: HTMLElement::new_inherited(HTMLFieldSetElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLFieldSetElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLFieldSetElement> {
- let element = HTMLFieldSetElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLFieldSetElement> {
+ let element = HTMLFieldSetElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLFieldSetElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlfontelement.rs b/components/script/dom/htmlfontelement.rs
index 0e60a29d808..0feede649a4 100644
--- a/components/script/dom/htmlfontelement.rs
+++ b/components/script/dom/htmlfontelement.rs
@@ -26,15 +26,15 @@ impl HTMLFontElementDerived for EventTarget {
}
impl HTMLFontElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFontElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLFontElement {
HTMLFontElement {
- htmlelement: HTMLElement::new_inherited(HTMLFontElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLFontElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLFontElement> {
- let element = HTMLFontElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLFontElement> {
+ let element = HTMLFontElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLFontElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs
index 997ed47ca5c..d0647839a47 100644
--- a/components/script/dom/htmlformelement.rs
+++ b/components/script/dom/htmlformelement.rs
@@ -26,15 +26,15 @@ impl HTMLFormElementDerived for EventTarget {
}
impl HTMLFormElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFormElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLFormElement {
HTMLFormElement {
- htmlelement: HTMLElement::new_inherited(HTMLFormElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLFormElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLFormElement> {
- let element = HTMLFormElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLFormElement> {
+ let element = HTMLFormElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLFormElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlframeelement.rs b/components/script/dom/htmlframeelement.rs
index 536e518eed1..62febac5b7f 100644
--- a/components/script/dom/htmlframeelement.rs
+++ b/components/script/dom/htmlframeelement.rs
@@ -26,15 +26,15 @@ impl HTMLFrameElementDerived for EventTarget {
}
impl HTMLFrameElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFrameElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLFrameElement {
HTMLFrameElement {
- htmlelement: HTMLElement::new_inherited(HTMLFrameElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLFrameElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLFrameElement> {
- let element = HTMLFrameElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLFrameElement> {
+ let element = HTMLFrameElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLFrameElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlframesetelement.rs b/components/script/dom/htmlframesetelement.rs
index aa25543f802..a2599a734d6 100644
--- a/components/script/dom/htmlframesetelement.rs
+++ b/components/script/dom/htmlframesetelement.rs
@@ -26,15 +26,15 @@ impl HTMLFrameSetElementDerived for EventTarget {
}
impl HTMLFrameSetElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFrameSetElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLFrameSetElement {
HTMLFrameSetElement {
- htmlelement: HTMLElement::new_inherited(HTMLFrameSetElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLFrameSetElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLFrameSetElement> {
- let element = HTMLFrameSetElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLFrameSetElement> {
+ let element = HTMLFrameSetElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLFrameSetElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlheadelement.rs b/components/script/dom/htmlheadelement.rs
index 689cf690966..c972400c0d6 100644
--- a/components/script/dom/htmlheadelement.rs
+++ b/components/script/dom/htmlheadelement.rs
@@ -26,15 +26,15 @@ impl HTMLHeadElementDerived for EventTarget {
}
impl HTMLHeadElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLHeadElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLHeadElement {
HTMLHeadElement {
- htmlelement: HTMLElement::new_inherited(HTMLHeadElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLHeadElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLHeadElement> {
- let element = HTMLHeadElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLHeadElement> {
+ let element = HTMLHeadElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLHeadElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlheadingelement.rs b/components/script/dom/htmlheadingelement.rs
index b4bf666639e..ace784a96a9 100644
--- a/components/script/dom/htmlheadingelement.rs
+++ b/components/script/dom/htmlheadingelement.rs
@@ -37,16 +37,16 @@ impl HTMLHeadingElementDerived for EventTarget {
}
impl HTMLHeadingElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>, level: HeadingLevel) -> HTMLHeadingElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>, level: HeadingLevel) -> HTMLHeadingElement {
HTMLHeadingElement {
- htmlelement: HTMLElement::new_inherited(HTMLHeadingElementTypeId, localName, document),
+ htmlelement: HTMLElement::new_inherited(HTMLHeadingElementTypeId, localName, prefix, document),
level: level,
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>, level: HeadingLevel) -> Temporary<HTMLHeadingElement> {
- let element = HTMLHeadingElement::new_inherited(localName, document, level);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>, level: HeadingLevel) -> Temporary<HTMLHeadingElement> {
+ let element = HTMLHeadingElement::new_inherited(localName, prefix, document, level);
Node::reflect_node(box element, document, HTMLHeadingElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlhrelement.rs b/components/script/dom/htmlhrelement.rs
index 8119a0aa96a..8167c5854f7 100644
--- a/components/script/dom/htmlhrelement.rs
+++ b/components/script/dom/htmlhrelement.rs
@@ -26,15 +26,15 @@ impl HTMLHRElementDerived for EventTarget {
}
impl HTMLHRElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLHRElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLHRElement {
HTMLHRElement {
- htmlelement: HTMLElement::new_inherited(HTMLHRElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLHRElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLHRElement> {
- let element = HTMLHRElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLHRElement> {
+ let element = HTMLHRElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLHRElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlhtmlelement.rs b/components/script/dom/htmlhtmlelement.rs
index 28bc364fbe3..279eb740709 100644
--- a/components/script/dom/htmlhtmlelement.rs
+++ b/components/script/dom/htmlhtmlelement.rs
@@ -26,15 +26,15 @@ impl HTMLHtmlElementDerived for EventTarget {
}
impl HTMLHtmlElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLHtmlElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLHtmlElement {
HTMLHtmlElement {
- htmlelement: HTMLElement::new_inherited(HTMLHtmlElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLHtmlElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLHtmlElement> {
- let element = HTMLHtmlElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLHtmlElement> {
+ let element = HTMLHtmlElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLHtmlElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index 273e089d510..e32b3d7437e 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -113,17 +113,17 @@ impl<'a> HTMLIFrameElementHelpers for JSRef<'a, HTMLIFrameElement> {
}
impl HTMLIFrameElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLIFrameElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLIFrameElement {
HTMLIFrameElement {
- htmlelement: HTMLElement::new_inherited(HTMLIFrameElementTypeId, localName, document),
+ htmlelement: HTMLElement::new_inherited(HTMLIFrameElementTypeId, localName, prefix, document),
size: Cell::new(None),
sandbox: Cell::new(None),
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLIFrameElement> {
- let element = HTMLIFrameElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLIFrameElement> {
+ let element = HTMLIFrameElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLIFrameElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs
index 76013985c55..633b07ce5bf 100644
--- a/components/script/dom/htmlimageelement.rs
+++ b/components/script/dom/htmlimageelement.rs
@@ -71,16 +71,16 @@ impl<'a> PrivateHTMLImageElementHelpers for JSRef<'a, HTMLImageElement> {
}
impl HTMLImageElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLImageElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLImageElement {
HTMLImageElement {
- htmlelement: HTMLElement::new_inherited(HTMLImageElementTypeId, localName, document),
+ htmlelement: HTMLElement::new_inherited(HTMLImageElementTypeId, localName, prefix, document),
image: RefCell::new(None),
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLImageElement> {
- let element = HTMLImageElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLImageElement> {
+ let element = HTMLImageElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLImageElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs
index 3bb57dfdb0e..bb8ef6dec27 100644
--- a/components/script/dom/htmlinputelement.rs
+++ b/components/script/dom/htmlinputelement.rs
@@ -62,9 +62,9 @@ impl HTMLInputElementDerived for EventTarget {
static DEFAULT_INPUT_SIZE: u32 = 20;
impl HTMLInputElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLInputElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLInputElement {
HTMLInputElement {
- htmlelement: HTMLElement::new_inherited(HTMLInputElementTypeId, localName, document),
+ htmlelement: HTMLElement::new_inherited(HTMLInputElementTypeId, localName, prefix, document),
input_type: Cell::new(InputText),
checked: Cell::new(false),
uncommitted_value: RefCell::new(None),
@@ -74,8 +74,8 @@ impl HTMLInputElement {
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLInputElement> {
- let element = HTMLInputElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLInputElement> {
+ let element = HTMLInputElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLInputElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmllabelelement.rs b/components/script/dom/htmllabelelement.rs
index 326fd8ab7a1..7ff84e0075a 100644
--- a/components/script/dom/htmllabelelement.rs
+++ b/components/script/dom/htmllabelelement.rs
@@ -26,15 +26,15 @@ impl HTMLLabelElementDerived for EventTarget {
}
impl HTMLLabelElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLLabelElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLLabelElement {
HTMLLabelElement {
- htmlelement: HTMLElement::new_inherited(HTMLLabelElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLLabelElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLLabelElement> {
- let element = HTMLLabelElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLLabelElement> {
+ let element = HTMLLabelElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLLabelElementBinding::Wrap)
}
}
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)
}
}
diff --git a/components/script/dom/htmllielement.rs b/components/script/dom/htmllielement.rs
index 02cd3349909..948430d3eda 100644
--- a/components/script/dom/htmllielement.rs
+++ b/components/script/dom/htmllielement.rs
@@ -26,15 +26,15 @@ impl HTMLLIElementDerived for EventTarget {
}
impl HTMLLIElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLLIElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLLIElement {
HTMLLIElement {
- htmlelement: HTMLElement::new_inherited(HTMLLIElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLLIElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLLIElement> {
- let element = HTMLLIElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLLIElement> {
+ let element = HTMLLIElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLLIElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmllinkelement.rs b/components/script/dom/htmllinkelement.rs
index d525fb366eb..04e03bcc760 100644
--- a/components/script/dom/htmllinkelement.rs
+++ b/components/script/dom/htmllinkelement.rs
@@ -34,15 +34,15 @@ impl HTMLLinkElementDerived for EventTarget {
}
impl HTMLLinkElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLLinkElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLLinkElement {
HTMLLinkElement {
- htmlelement: HTMLElement::new_inherited(HTMLLinkElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLLinkElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLLinkElement> {
- let element = HTMLLinkElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLLinkElement> {
+ let element = HTMLLinkElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLLinkElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlmapelement.rs b/components/script/dom/htmlmapelement.rs
index 8b2e775d6d3..585102c2af9 100644
--- a/components/script/dom/htmlmapelement.rs
+++ b/components/script/dom/htmlmapelement.rs
@@ -26,15 +26,15 @@ impl HTMLMapElementDerived for EventTarget {
}
impl HTMLMapElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLMapElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLMapElement {
HTMLMapElement {
- htmlelement: HTMLElement::new_inherited(HTMLMapElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLMapElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLMapElement> {
- let element = HTMLMapElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLMapElement> {
+ let element = HTMLMapElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLMapElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs
index b2f5dedce52..ef841c31a35 100644
--- a/components/script/dom/htmlmediaelement.rs
+++ b/components/script/dom/htmlmediaelement.rs
@@ -29,9 +29,9 @@ impl HTMLMediaElementDerived for EventTarget {
}
impl HTMLMediaElement {
- pub fn new_inherited(type_id: ElementTypeId, tag_name: DOMString, document: JSRef<Document>) -> HTMLMediaElement {
+ pub fn new_inherited(type_id: ElementTypeId, tag_name: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLMediaElement {
HTMLMediaElement {
- htmlelement: HTMLElement::new_inherited(type_id, tag_name, document)
+ htmlelement: HTMLElement::new_inherited(type_id, tag_name, prefix, document)
}
}
}
diff --git a/components/script/dom/htmlmetaelement.rs b/components/script/dom/htmlmetaelement.rs
index bb4a87065e6..34873293440 100644
--- a/components/script/dom/htmlmetaelement.rs
+++ b/components/script/dom/htmlmetaelement.rs
@@ -26,15 +26,15 @@ impl HTMLMetaElementDerived for EventTarget {
}
impl HTMLMetaElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLMetaElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLMetaElement {
HTMLMetaElement {
- htmlelement: HTMLElement::new_inherited(HTMLMetaElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLMetaElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLMetaElement> {
- let element = HTMLMetaElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLMetaElement> {
+ let element = HTMLMetaElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLMetaElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlmeterelement.rs b/components/script/dom/htmlmeterelement.rs
index 7fad261f23f..1648cde9751 100644
--- a/components/script/dom/htmlmeterelement.rs
+++ b/components/script/dom/htmlmeterelement.rs
@@ -26,15 +26,15 @@ impl HTMLMeterElementDerived for EventTarget {
}
impl HTMLMeterElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLMeterElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLMeterElement {
HTMLMeterElement {
- htmlelement: HTMLElement::new_inherited(HTMLMeterElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLMeterElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLMeterElement> {
- let element = HTMLMeterElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLMeterElement> {
+ let element = HTMLMeterElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLMeterElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlmodelement.rs b/components/script/dom/htmlmodelement.rs
index e7686bb0381..35ebb61e6ad 100644
--- a/components/script/dom/htmlmodelement.rs
+++ b/components/script/dom/htmlmodelement.rs
@@ -26,15 +26,15 @@ impl HTMLModElementDerived for EventTarget {
}
impl HTMLModElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLModElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLModElement {
HTMLModElement {
- htmlelement: HTMLElement::new_inherited(HTMLModElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLModElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLModElement> {
- let element = HTMLModElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLModElement> {
+ let element = HTMLModElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLModElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlobjectelement.rs b/components/script/dom/htmlobjectelement.rs
index 268c4699456..6a398111876 100644
--- a/components/script/dom/htmlobjectelement.rs
+++ b/components/script/dom/htmlobjectelement.rs
@@ -38,15 +38,15 @@ impl HTMLObjectElementDerived for EventTarget {
}
impl HTMLObjectElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLObjectElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLObjectElement {
HTMLObjectElement {
- htmlelement: HTMLElement::new_inherited(HTMLObjectElementTypeId, localName, document),
+ htmlelement: HTMLElement::new_inherited(HTMLObjectElementTypeId, localName, prefix, document),
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLObjectElement> {
- let element = HTMLObjectElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLObjectElement> {
+ let element = HTMLObjectElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLObjectElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlolistelement.rs b/components/script/dom/htmlolistelement.rs
index 0fa1fac33e4..ae36ce0d628 100644
--- a/components/script/dom/htmlolistelement.rs
+++ b/components/script/dom/htmlolistelement.rs
@@ -26,15 +26,15 @@ impl HTMLOListElementDerived for EventTarget {
}
impl HTMLOListElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLOListElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLOListElement {
HTMLOListElement {
- htmlelement: HTMLElement::new_inherited(HTMLOListElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLOListElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLOListElement> {
- let element = HTMLOListElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLOListElement> {
+ let element = HTMLOListElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLOListElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmloptgroupelement.rs b/components/script/dom/htmloptgroupelement.rs
index bf5782fb4e3..cf63bbbd653 100644
--- a/components/script/dom/htmloptgroupelement.rs
+++ b/components/script/dom/htmloptgroupelement.rs
@@ -31,15 +31,15 @@ impl HTMLOptGroupElementDerived for EventTarget {
}
impl HTMLOptGroupElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLOptGroupElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLOptGroupElement {
HTMLOptGroupElement {
- htmlelement: HTMLElement::new_inherited(HTMLOptGroupElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLOptGroupElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLOptGroupElement> {
- let element = HTMLOptGroupElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLOptGroupElement> {
+ let element = HTMLOptGroupElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLOptGroupElementBinding::Wrap)
}
}
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)
}
}
diff --git a/components/script/dom/htmloutputelement.rs b/components/script/dom/htmloutputelement.rs
index a316bfe821d..1442980de26 100644
--- a/components/script/dom/htmloutputelement.rs
+++ b/components/script/dom/htmloutputelement.rs
@@ -28,15 +28,15 @@ impl HTMLOutputElementDerived for EventTarget {
}
impl HTMLOutputElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLOutputElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLOutputElement {
HTMLOutputElement {
- htmlelement: HTMLElement::new_inherited(HTMLOutputElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLOutputElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLOutputElement> {
- let element = HTMLOutputElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLOutputElement> {
+ let element = HTMLOutputElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLOutputElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlparagraphelement.rs b/components/script/dom/htmlparagraphelement.rs
index b8645e3c35f..6b91ba18afc 100644
--- a/components/script/dom/htmlparagraphelement.rs
+++ b/components/script/dom/htmlparagraphelement.rs
@@ -26,15 +26,15 @@ impl HTMLParagraphElementDerived for EventTarget {
}
impl HTMLParagraphElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLParagraphElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLParagraphElement {
HTMLParagraphElement {
- htmlelement: HTMLElement::new_inherited(HTMLParagraphElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLParagraphElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLParagraphElement> {
- let element = HTMLParagraphElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLParagraphElement> {
+ let element = HTMLParagraphElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLParagraphElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlparamelement.rs b/components/script/dom/htmlparamelement.rs
index fded20de33f..2b664425e85 100644
--- a/components/script/dom/htmlparamelement.rs
+++ b/components/script/dom/htmlparamelement.rs
@@ -26,15 +26,15 @@ impl HTMLParamElementDerived for EventTarget {
}
impl HTMLParamElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLParamElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLParamElement {
HTMLParamElement {
- htmlelement: HTMLElement::new_inherited(HTMLParamElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLParamElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLParamElement> {
- let element = HTMLParamElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLParamElement> {
+ let element = HTMLParamElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLParamElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlpreelement.rs b/components/script/dom/htmlpreelement.rs
index 66f914fa405..9ec13769e78 100644
--- a/components/script/dom/htmlpreelement.rs
+++ b/components/script/dom/htmlpreelement.rs
@@ -26,15 +26,15 @@ impl HTMLPreElementDerived for EventTarget {
}
impl HTMLPreElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLPreElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLPreElement {
HTMLPreElement {
- htmlelement: HTMLElement::new_inherited(HTMLPreElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLPreElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLPreElement> {
- let element = HTMLPreElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLPreElement> {
+ let element = HTMLPreElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLPreElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlprogresselement.rs b/components/script/dom/htmlprogresselement.rs
index 038fd36530b..c9506716562 100644
--- a/components/script/dom/htmlprogresselement.rs
+++ b/components/script/dom/htmlprogresselement.rs
@@ -26,15 +26,15 @@ impl HTMLProgressElementDerived for EventTarget {
}
impl HTMLProgressElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLProgressElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLProgressElement {
HTMLProgressElement {
- htmlelement: HTMLElement::new_inherited(HTMLProgressElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLProgressElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLProgressElement> {
- let element = HTMLProgressElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLProgressElement> {
+ let element = HTMLProgressElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLProgressElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlquoteelement.rs b/components/script/dom/htmlquoteelement.rs
index acc8a9d4357..532554254c2 100644
--- a/components/script/dom/htmlquoteelement.rs
+++ b/components/script/dom/htmlquoteelement.rs
@@ -26,15 +26,15 @@ impl HTMLQuoteElementDerived for EventTarget {
}
impl HTMLQuoteElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLQuoteElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLQuoteElement {
HTMLQuoteElement {
- htmlelement: HTMLElement::new_inherited(HTMLQuoteElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLQuoteElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLQuoteElement> {
- let element = HTMLQuoteElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLQuoteElement> {
+ let element = HTMLQuoteElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLQuoteElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlscriptelement.rs b/components/script/dom/htmlscriptelement.rs
index 73a39aab521..3c200b9f324 100644
--- a/components/script/dom/htmlscriptelement.rs
+++ b/components/script/dom/htmlscriptelement.rs
@@ -31,15 +31,15 @@ impl HTMLScriptElementDerived for EventTarget {
}
impl HTMLScriptElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLScriptElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLScriptElement {
HTMLScriptElement {
- htmlelement: HTMLElement::new_inherited(HTMLScriptElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLScriptElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLScriptElement> {
- let element = HTMLScriptElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLScriptElement> {
+ let element = HTMLScriptElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLScriptElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlselectelement.rs b/components/script/dom/htmlselectelement.rs
index 787a7e32b09..cabff32d906 100644
--- a/components/script/dom/htmlselectelement.rs
+++ b/components/script/dom/htmlselectelement.rs
@@ -34,15 +34,15 @@ impl HTMLSelectElementDerived for EventTarget {
}
impl HTMLSelectElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLSelectElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLSelectElement {
HTMLSelectElement {
- htmlelement: HTMLElement::new_inherited(HTMLSelectElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLSelectElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLSelectElement> {
- let element = HTMLSelectElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLSelectElement> {
+ let element = HTMLSelectElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLSelectElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlsourceelement.rs b/components/script/dom/htmlsourceelement.rs
index 336d7af74be..07d971c0dff 100644
--- a/components/script/dom/htmlsourceelement.rs
+++ b/components/script/dom/htmlsourceelement.rs
@@ -26,15 +26,15 @@ impl HTMLSourceElementDerived for EventTarget {
}
impl HTMLSourceElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLSourceElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLSourceElement {
HTMLSourceElement {
- htmlelement: HTMLElement::new_inherited(HTMLSourceElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLSourceElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLSourceElement> {
- let element = HTMLSourceElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLSourceElement> {
+ let element = HTMLSourceElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLSourceElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlspanelement.rs b/components/script/dom/htmlspanelement.rs
index 84ce1272d7b..a3a55d5b00a 100644
--- a/components/script/dom/htmlspanelement.rs
+++ b/components/script/dom/htmlspanelement.rs
@@ -26,15 +26,15 @@ impl HTMLSpanElementDerived for EventTarget {
}
impl HTMLSpanElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLSpanElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLSpanElement {
HTMLSpanElement {
- htmlelement: HTMLElement::new_inherited(HTMLSpanElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLSpanElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLSpanElement> {
- let element = HTMLSpanElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLSpanElement> {
+ let element = HTMLSpanElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLSpanElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlstyleelement.rs b/components/script/dom/htmlstyleelement.rs
index a4bc3ace264..7f8b7747d03 100644
--- a/components/script/dom/htmlstyleelement.rs
+++ b/components/script/dom/htmlstyleelement.rs
@@ -30,15 +30,15 @@ impl HTMLStyleElementDerived for EventTarget {
}
impl HTMLStyleElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLStyleElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLStyleElement {
HTMLStyleElement {
- htmlelement: HTMLElement::new_inherited(HTMLStyleElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLStyleElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLStyleElement> {
- let element = HTMLStyleElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLStyleElement> {
+ let element = HTMLStyleElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLStyleElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmltablecaptionelement.rs b/components/script/dom/htmltablecaptionelement.rs
index b49944eaaf0..68a0feab854 100644
--- a/components/script/dom/htmltablecaptionelement.rs
+++ b/components/script/dom/htmltablecaptionelement.rs
@@ -26,15 +26,15 @@ impl HTMLTableCaptionElementDerived for EventTarget {
}
impl HTMLTableCaptionElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableCaptionElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLTableCaptionElement {
HTMLTableCaptionElement {
- htmlelement: HTMLElement::new_inherited(HTMLTableCaptionElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLTableCaptionElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLTableCaptionElement> {
- let element = HTMLTableCaptionElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLTableCaptionElement> {
+ let element = HTMLTableCaptionElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLTableCaptionElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmltablecellelement.rs b/components/script/dom/htmltablecellelement.rs
index 9412e6c77bd..f4fc2002fa9 100644
--- a/components/script/dom/htmltablecellelement.rs
+++ b/components/script/dom/htmltablecellelement.rs
@@ -29,9 +29,9 @@ impl HTMLTableCellElementDerived for EventTarget {
}
impl HTMLTableCellElement {
- pub fn new_inherited(type_id: ElementTypeId, tag_name: DOMString, document: JSRef<Document>) -> HTMLTableCellElement {
+ pub fn new_inherited(type_id: ElementTypeId, tag_name: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLTableCellElement {
HTMLTableCellElement {
- htmlelement: HTMLElement::new_inherited(type_id, tag_name, document)
+ htmlelement: HTMLElement::new_inherited(type_id, tag_name, prefix, document)
}
}
}
diff --git a/components/script/dom/htmltablecolelement.rs b/components/script/dom/htmltablecolelement.rs
index fdadb37acf7..88bc8b7beb5 100644
--- a/components/script/dom/htmltablecolelement.rs
+++ b/components/script/dom/htmltablecolelement.rs
@@ -26,15 +26,15 @@ impl HTMLTableColElementDerived for EventTarget {
}
impl HTMLTableColElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableColElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLTableColElement {
HTMLTableColElement {
- htmlelement: HTMLElement::new_inherited(HTMLTableColElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLTableColElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLTableColElement> {
- let element = HTMLTableColElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLTableColElement> {
+ let element = HTMLTableColElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLTableColElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmltabledatacellelement.rs b/components/script/dom/htmltabledatacellelement.rs
index 5e110827e2d..83569b1e08c 100644
--- a/components/script/dom/htmltabledatacellelement.rs
+++ b/components/script/dom/htmltabledatacellelement.rs
@@ -26,15 +26,15 @@ impl HTMLTableDataCellElementDerived for EventTarget {
}
impl HTMLTableDataCellElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableDataCellElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLTableDataCellElement {
HTMLTableDataCellElement {
- htmltablecellelement: HTMLTableCellElement::new_inherited(HTMLTableDataCellElementTypeId, localName, document)
+ htmltablecellelement: HTMLTableCellElement::new_inherited(HTMLTableDataCellElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLTableDataCellElement> {
- let element = HTMLTableDataCellElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLTableDataCellElement> {
+ let element = HTMLTableDataCellElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLTableDataCellElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmltableelement.rs b/components/script/dom/htmltableelement.rs
index 68cb80371c3..1d9b4eff9d0 100644
--- a/components/script/dom/htmltableelement.rs
+++ b/components/script/dom/htmltableelement.rs
@@ -30,15 +30,15 @@ impl HTMLTableElementDerived for EventTarget {
}
impl HTMLTableElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLTableElement {
HTMLTableElement {
- htmlelement: HTMLElement::new_inherited(HTMLTableElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLTableElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLTableElement> {
- let element = HTMLTableElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLTableElement> {
+ let element = HTMLTableElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLTableElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmltableheadercellelement.rs b/components/script/dom/htmltableheadercellelement.rs
index a88fdc302d3..056c7b9d789 100644
--- a/components/script/dom/htmltableheadercellelement.rs
+++ b/components/script/dom/htmltableheadercellelement.rs
@@ -26,15 +26,15 @@ impl HTMLTableHeaderCellElementDerived for EventTarget {
}
impl HTMLTableHeaderCellElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableHeaderCellElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLTableHeaderCellElement {
HTMLTableHeaderCellElement {
- htmltablecellelement: HTMLTableCellElement::new_inherited(HTMLTableHeaderCellElementTypeId, localName, document)
+ htmltablecellelement: HTMLTableCellElement::new_inherited(HTMLTableHeaderCellElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLTableHeaderCellElement> {
- let element = HTMLTableHeaderCellElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLTableHeaderCellElement> {
+ let element = HTMLTableHeaderCellElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLTableHeaderCellElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmltablerowelement.rs b/components/script/dom/htmltablerowelement.rs
index fdb2f049e3b..51fb63bd7e8 100644
--- a/components/script/dom/htmltablerowelement.rs
+++ b/components/script/dom/htmltablerowelement.rs
@@ -26,15 +26,15 @@ impl HTMLTableRowElementDerived for EventTarget {
}
impl HTMLTableRowElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableRowElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLTableRowElement {
HTMLTableRowElement {
- htmlelement: HTMLElement::new_inherited(HTMLTableRowElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLTableRowElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLTableRowElement> {
- let element = HTMLTableRowElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLTableRowElement> {
+ let element = HTMLTableRowElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLTableRowElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmltablesectionelement.rs b/components/script/dom/htmltablesectionelement.rs
index b730aca1f06..7b3eb02ebc1 100644
--- a/components/script/dom/htmltablesectionelement.rs
+++ b/components/script/dom/htmltablesectionelement.rs
@@ -26,15 +26,15 @@ impl HTMLTableSectionElementDerived for EventTarget {
}
impl HTMLTableSectionElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableSectionElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLTableSectionElement {
HTMLTableSectionElement {
- htmlelement: HTMLElement::new_inherited(HTMLTableSectionElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLTableSectionElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLTableSectionElement> {
- let element = HTMLTableSectionElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLTableSectionElement> {
+ let element = HTMLTableSectionElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLTableSectionElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmltemplateelement.rs b/components/script/dom/htmltemplateelement.rs
index fb48d6c1125..523b8b8bae0 100644
--- a/components/script/dom/htmltemplateelement.rs
+++ b/components/script/dom/htmltemplateelement.rs
@@ -26,15 +26,15 @@ impl HTMLTemplateElementDerived for EventTarget {
}
impl HTMLTemplateElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTemplateElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLTemplateElement {
HTMLTemplateElement {
- htmlelement: HTMLElement::new_inherited(HTMLTemplateElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLTemplateElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLTemplateElement> {
- let element = HTMLTemplateElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLTemplateElement> {
+ let element = HTMLTemplateElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLTemplateElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmltextareaelement.rs b/components/script/dom/htmltextareaelement.rs
index 763c636d5b6..947f929c794 100644
--- a/components/script/dom/htmltextareaelement.rs
+++ b/components/script/dom/htmltextareaelement.rs
@@ -31,15 +31,15 @@ impl HTMLTextAreaElementDerived for EventTarget {
}
impl HTMLTextAreaElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTextAreaElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLTextAreaElement {
HTMLTextAreaElement {
- htmlelement: HTMLElement::new_inherited(HTMLTextAreaElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLTextAreaElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLTextAreaElement> {
- let element = HTMLTextAreaElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLTextAreaElement> {
+ let element = HTMLTextAreaElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLTextAreaElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmltimeelement.rs b/components/script/dom/htmltimeelement.rs
index 4d0c1cbe0bf..5d71321b88b 100644
--- a/components/script/dom/htmltimeelement.rs
+++ b/components/script/dom/htmltimeelement.rs
@@ -26,15 +26,15 @@ impl HTMLTimeElementDerived for EventTarget {
}
impl HTMLTimeElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTimeElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLTimeElement {
HTMLTimeElement {
- htmlelement: HTMLElement::new_inherited(HTMLTimeElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLTimeElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLTimeElement> {
- let element = HTMLTimeElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLTimeElement> {
+ let element = HTMLTimeElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLTimeElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmltitleelement.rs b/components/script/dom/htmltitleelement.rs
index 7b15910d8eb..1004d1c7473 100644
--- a/components/script/dom/htmltitleelement.rs
+++ b/components/script/dom/htmltitleelement.rs
@@ -29,15 +29,15 @@ impl HTMLTitleElementDerived for EventTarget {
}
impl HTMLTitleElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTitleElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLTitleElement {
HTMLTitleElement {
- htmlelement: HTMLElement::new_inherited(HTMLTitleElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLTitleElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLTitleElement> {
- let element = HTMLTitleElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLTitleElement> {
+ let element = HTMLTitleElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLTitleElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmltrackelement.rs b/components/script/dom/htmltrackelement.rs
index 7ddbd2190bd..a1c5c428d74 100644
--- a/components/script/dom/htmltrackelement.rs
+++ b/components/script/dom/htmltrackelement.rs
@@ -26,15 +26,15 @@ impl HTMLTrackElementDerived for EventTarget {
}
impl HTMLTrackElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTrackElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLTrackElement {
HTMLTrackElement {
- htmlelement: HTMLElement::new_inherited(HTMLTrackElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLTrackElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLTrackElement> {
- let element = HTMLTrackElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLTrackElement> {
+ let element = HTMLTrackElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLTrackElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlulistelement.rs b/components/script/dom/htmlulistelement.rs
index 143a2a38ac5..ffeb8affa11 100644
--- a/components/script/dom/htmlulistelement.rs
+++ b/components/script/dom/htmlulistelement.rs
@@ -26,15 +26,15 @@ impl HTMLUListElementDerived for EventTarget {
}
impl HTMLUListElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLUListElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLUListElement {
HTMLUListElement {
- htmlelement: HTMLElement::new_inherited(HTMLUListElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLUListElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLUListElement> {
- let element = HTMLUListElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLUListElement> {
+ let element = HTMLUListElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLUListElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlunknownelement.rs b/components/script/dom/htmlunknownelement.rs
index a41b4cca835..f39329c8e1f 100644
--- a/components/script/dom/htmlunknownelement.rs
+++ b/components/script/dom/htmlunknownelement.rs
@@ -26,15 +26,15 @@ impl HTMLUnknownElementDerived for EventTarget {
}
impl HTMLUnknownElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLUnknownElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLUnknownElement {
HTMLUnknownElement {
- htmlelement: HTMLElement::new_inherited(HTMLUnknownElementTypeId, localName, document)
+ htmlelement: HTMLElement::new_inherited(HTMLUnknownElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLUnknownElement> {
- let element = HTMLUnknownElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLUnknownElement> {
+ let element = HTMLUnknownElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLUnknownElementBinding::Wrap)
}
}
diff --git a/components/script/dom/htmlvideoelement.rs b/components/script/dom/htmlvideoelement.rs
index 3ae359eff94..ecbabaa906b 100644
--- a/components/script/dom/htmlvideoelement.rs
+++ b/components/script/dom/htmlvideoelement.rs
@@ -26,15 +26,15 @@ impl HTMLVideoElementDerived for EventTarget {
}
impl HTMLVideoElement {
- fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLVideoElement {
+ fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLVideoElement {
HTMLVideoElement {
- htmlmediaelement: HTMLMediaElement::new_inherited(HTMLVideoElementTypeId, localName, document)
+ htmlmediaelement: HTMLMediaElement::new_inherited(HTMLVideoElementTypeId, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLVideoElement> {
- let element = HTMLVideoElement::new_inherited(localName, document);
+ pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLVideoElement> {
+ let element = HTMLVideoElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLVideoElementBinding::Wrap)
}
}
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index f84e2529450..b8319bd0da4 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -1382,7 +1382,7 @@ impl Node {
let element: JSRef<Element> = ElementCast::to_ref(node).unwrap();
let element = element.deref();
let element = build_element_from_tag(element.local_name.as_slice().to_string(),
- element.namespace.clone(), *document);
+ element.namespace.clone(), Some(element.prefix.as_slice().to_string()), *document);
NodeCast::from_temporary(element)
},
TextNodeTypeId => {