aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2015-10-26 14:07:50 -0500
committerbors-servo <lbergstrom+bors@mozilla.com>2015-10-26 14:07:50 -0500
commit6c051ce8286873e47fd33ec438142ddffbb84ca2 (patch)
tree21a50d7213bec55c9fc98c7c2d1dc3d8dbc5a0bf
parentf6e3146de248554607790108680a43844dff70bf (diff)
parent1fc50af8d3d38f0d6c16f21f6110406e18c7f373 (diff)
downloadservo-6c051ce8286873e47fd33ec438142ddffbb84ca2.tar.gz
servo-6c051ce8286873e47fd33ec438142ddffbb84ca2.zip
Auto merge of #8201 - KiChjang:add-missing-htmlpreelement, r=jdm
Add missing htmlpreelement Fixes #7995. My tests came out pretty weird, with additional crashes and timeouts. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8201) <!-- Reviewable:end -->
-rw-r--r--components/script/dom/create.rs2
-rw-r--r--tests/wpt/metadata/html/dom/interfaces.html.ini12
-rw-r--r--tests/wpt/metadata/touch-events/create-touch-touchlist.html.ini1
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 7991e41c459..a72593fcf48 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
+