Auto merge of #7955 - frewsxcv:listing-pre, r=nox

Add 'listing' alias for <pre> elements



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7955)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-10-10 11:08:14 -06:00
commit b34b82537a
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),
}
}

View file

@ -2370,12 +2370,6 @@
[HTMLPreElement interface: document.createElement("pre") must inherit property "width" with the proper type (0)]
expected: FAIL
[HTMLPreElement must be primary interface of document.createElement("listing")]
expected: FAIL
[Stringification of document.createElement("listing")]
expected: FAIL
[HTMLPreElement interface: document.createElement("listing") must inherit property "width" with the proper type (0)]
expected: FAIL