mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
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:
commit
b34b82537a
2 changed files with 2 additions and 7 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue