diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-10-10 11:08:14 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-10-10 11:08:14 -0600 |
commit | b34b82537acfb7cd9bd8bcecd5eb49528020b1ab (patch) | |
tree | 1586f26bd9b734d9057aa57e118febe15637a6a5 /components/script/dom | |
parent | 4052a22a1c6826cb18f03de9d2f6aed82d809e71 (diff) | |
parent | 59e2911f28b19081c5f386950d0774e2ec24acbe (diff) | |
download | servo-b34b82537acfb7cd9bd8bcecd5eb49528020b1ab.tar.gz servo-b34b82537acfb7cd9bd8bcecd5eb49528020b1ab.zip |
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 -->
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/create.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/create.rs b/components/script/dom/create.rs index f2b8182cdc3..14e061c07a0 100644 --- a/components/script/dom/create.rs +++ b/components/script/dom/create.rs @@ -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), } } - |