diff options
author | Keith Yeung <kungfukeith11@gmail.com> | 2015-10-25 22:49:57 -0700 |
---|---|---|
committer | Keith Yeung <kungfukeith11@gmail.com> | 2015-10-26 10:22:04 -0700 |
commit | 1fc50af8d3d38f0d6c16f21f6110406e18c7f373 (patch) | |
tree | ec342bcde1f65c3d7d260eaaa519bdef618ce020 | |
parent | 64cae0c5905d1069e40c94c4ef61d50b30bc8196 (diff) | |
download | servo-1fc50af8d3d38f0d6c16f21f6110406e18c7f373.tar.gz servo-1fc50af8d3d38f0d6c16f21f6110406e18c7f373.zip |
Add HTMLPreElement type to xml and plaintext DOM nodes
-rw-r--r-- | components/script/dom/create.rs | 2 | ||||
-rw-r--r-- | tests/wpt/metadata/html/dom/interfaces.html.ini | 12 | ||||
-rw-r--r-- | tests/wpt/metadata/touch-events/create-touch-touchlist.html.ini | 1 |
3 files changed, 3 insertions, 12 deletions
diff --git a/components/script/dom/create.rs b/components/script/dom/create.rs index bb7deafb747..97a5ffcc89c 100644 --- a/components/script/dom/create.rs +++ b/components/script/dom/create.rs @@ -197,6 +197,7 @@ pub fn create_element(name: QualName, prefix: Option<Atom>, atom!("output") => make!(HTMLOutputElement), atom!("p") => make!(HTMLParagraphElement), atom!("param") => make!(HTMLParamElement), + atom!("plaintext") => make!(HTMLPreElement), atom!("pre") => make!(HTMLPreElement), atom!("progress") => make!(HTMLProgressElement), atom!("q") => make!(HTMLQuoteElement), @@ -239,6 +240,7 @@ pub fn create_element(name: QualName, prefix: Option<Atom>, atom!("var") => make!(HTMLElement), atom!("video") => make!(HTMLVideoElement), atom!("wbr") => make!(HTMLElement), + atom!("xmp") => make!(HTMLPreElement), _ => make!(HTMLUnknownElement), } } diff --git a/tests/wpt/metadata/html/dom/interfaces.html.ini b/tests/wpt/metadata/html/dom/interfaces.html.ini index 561b37584bd..d45ac708e52 100644 --- a/tests/wpt/metadata/html/dom/interfaces.html.ini +++ b/tests/wpt/metadata/html/dom/interfaces.html.ini @@ -2355,21 +2355,9 @@ [HTMLPreElement interface: document.createElement("listing") must inherit property "width" with the proper type (0)] expected: FAIL - [HTMLPreElement must be primary interface of document.createElement("plaintext")] - expected: FAIL - - [Stringification of document.createElement("plaintext")] - expected: FAIL - [HTMLPreElement interface: document.createElement("plaintext") must inherit property "width" with the proper type (0)] expected: FAIL - [HTMLPreElement must be primary interface of document.createElement("xmp")] - expected: FAIL - - [Stringification of document.createElement("xmp")] - expected: FAIL - [HTMLPreElement interface: document.createElement("xmp") must inherit property "width" with the proper type (0)] expected: FAIL diff --git a/tests/wpt/metadata/touch-events/create-touch-touchlist.html.ini b/tests/wpt/metadata/touch-events/create-touch-touchlist.html.ini index 35632d4a9e0..0689d8f61e6 100644 --- a/tests/wpt/metadata/touch-events/create-touch-touchlist.html.ini +++ b/tests/wpt/metadata/touch-events/create-touch-touchlist.html.ini @@ -8,3 +8,4 @@ [document.createTouchList exists and correctly creates a TouchList from two Touch objects] expected: FAIL + |