Add HTMLPreElement type to xml and plaintext DOM nodes

This commit is contained in:
Keith Yeung 2015-10-25 22:49:57 -07:00
parent 64cae0c590
commit 1fc50af8d3
3 changed files with 3 additions and 12 deletions

View file

@ -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),
}
}