Add 'listing' alias for <pre> elements

This commit is contained in:
Corey Farwell 2015-10-10 08:58:38 -04:00
parent 9cccd98254
commit 59e2911f28
2 changed files with 2 additions and 7 deletions

View file

@ -175,6 +175,8 @@ pub fn create_element(name: QualName, prefix: Option<Atom>,
atom!("legend") => make!(HTMLLegendElement),
atom!("li") => make!(HTMLLIElement),
atom!("link") => make!(HTMLLinkElement),
// https://html.spec.whatwg.org/multipage/#other-elements,-attributes-and-apis:listing
atom!("listing") => make!(HTMLPreElement),
atom!("main") => make!(HTMLElement),
atom!("map") => make!(HTMLMapElement),
atom!("mark") => make!(HTMLElement),
@ -241,4 +243,3 @@ pub fn create_element(name: QualName, prefix: Option<Atom>,
_ => make!(HTMLUnknownElement),
}
}