mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add 'listing' alias for <pre> elements
This commit is contained in:
parent
9cccd98254
commit
59e2911f28
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