From f729d727824d6a35b6b9044d1cb495b6102ad92b Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Mon, 2 Jan 2017 14:09:05 +0100 Subject: [PATCH] Test that historical HTMLElement features are not supported (#4331) Also a few related things added to dom/historical.html. --- dom/historical.html | 13 +++++++++- .../elements-in-the-dom/historical.html | 24 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 html/dom/elements/elements-in-the-dom/historical.html diff --git a/dom/historical.html b/dom/historical.html index e0612be814e79f..d669ad4af123e0 100644 --- a/dom/historical.html +++ b/dom/historical.html @@ -48,10 +48,21 @@ "renameNode", "defaultCharset", "height", - "width" + "width", + // https://github.com/whatwg/html/commit/a64aea7fdb221bba027d95dc3cabda09e0b3e5dc + "commands", + // https://github.com/whatwg/html/commit/797b4d273955a0fe3cc2e2d0ca5d578f37c0f126 + "cssElementMap", + // https://github.com/whatwg/html/commit/e236f46820b93d6fe2e2caae0363331075c6c4fb + "async", ] documentNuked.forEach(isNukedFromDocument) +test(function() { + // https://github.com/whatwg/html/commit/e236f46820b93d6fe2e2caae0363331075c6c4fb + assert_false("load" in document); +}, "document.load"); + test(function() { assert_equals(document.implementation["getFeature"], undefined) }, "DOMImplementation.getFeature() must be nuked.") diff --git a/html/dom/elements/elements-in-the-dom/historical.html b/html/dom/elements/elements-in-the-dom/historical.html new file mode 100644 index 00000000000000..c18ee318f50139 --- /dev/null +++ b/html/dom/elements/elements-in-the-dom/historical.html @@ -0,0 +1,24 @@ + +Historical HTMLElement features + + + +