mirror of
https://github.com/servo/servo.git
synced 2025-07-14 02:43:42 +01: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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue