aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/create.rs
diff options
context:
space:
mode:
authorKeith Yeung <kungfukeith11@gmail.com>2015-10-25 22:49:57 -0700
committerKeith Yeung <kungfukeith11@gmail.com>2015-10-26 10:22:04 -0700
commit1fc50af8d3d38f0d6c16f21f6110406e18c7f373 (patch)
treeec342bcde1f65c3d7d260eaaa519bdef618ce020 /components/script/dom/create.rs
parent64cae0c5905d1069e40c94c4ef61d50b30bc8196 (diff)
downloadservo-1fc50af8d3d38f0d6c16f21f6110406e18c7f373.tar.gz
servo-1fc50af8d3d38f0d6c16f21f6110406e18c7f373.zip
Add HTMLPreElement type to xml and plaintext DOM nodes
Diffstat (limited to 'components/script/dom/create.rs')
-rw-r--r--components/script/dom/create.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/create.rs b/components/script/dom/create.rs
index bb7deafb747..97a5ffcc89c 100644
--- a/components/script/dom/create.rs
+++ b/components/script/dom/create.rs
@@ -197,6 +197,7 @@ pub fn create_element(name: QualName, prefix: Option<Atom>,
atom!("output") => make!(HTMLOutputElement),
atom!("p") => make!(HTMLParagraphElement),
atom!("param") => make!(HTMLParamElement),
+ atom!("plaintext") => make!(HTMLPreElement),
atom!("pre") => make!(HTMLPreElement),
atom!("progress") => make!(HTMLProgressElement),
atom!("q") => make!(HTMLQuoteElement),
@@ -239,6 +240,7 @@ pub fn create_element(name: QualName, prefix: Option<Atom>,
atom!("var") => make!(HTMLElement),
atom!("video") => make!(HTMLVideoElement),
atom!("wbr") => make!(HTMLElement),
+ atom!("xmp") => make!(HTMLPreElement),
_ => make!(HTMLUnknownElement),
}
}