diff --git a/custom-elements/reactions/HTMLElement.html b/custom-elements/reactions/HTMLElement.html index 5fe422cdfc1df5..bd252282161b59 100644 --- a/custom-elements/reactions/HTMLElement.html +++ b/custom-elements/reactions/HTMLElement.html @@ -28,12 +28,9 @@ customElement.parentNode.innerText = ''; }, 'innerText on HTMLElement'); -if ('outerText' in HTMLElement.prototype) { - // Not yet to be in the standard but all but Gecko supports this property: https://github.com/whatwg/html/issues/668 - testNodeDisconnector(function (customElement) { - customElement.outerText = ''; - }, 'outerText on HTMLElement'); -} +testNodeDisconnector(function (customElement) { + customElement.outerText = ''; +}, 'outerText on HTMLElement'); diff --git a/html/dom/elements/the-innertext-idl-attribute/dynamic-getter.html b/html/dom/elements/the-innertext-and-outertext-properties/dynamic-getter.html similarity index 93% rename from html/dom/elements/the-innertext-idl-attribute/dynamic-getter.html rename to html/dom/elements/the-innertext-and-outertext-properties/dynamic-getter.html index b3e96f94a80501..e34fcf5ac1e444 100644 --- a/html/dom/elements/the-innertext-idl-attribute/dynamic-getter.html +++ b/html/dom/elements/the-innertext-and-outertext-properties/dynamic-getter.html @@ -1,5 +1,5 @@ -innerText getter test with dynamic style changes +innerText/outerText getter test with dynamic style changes
@@ -19,7 +19,8 @@ if (!e) { e = container.firstChild; } - assert_equals(e.innerText, expectedPlain); + assert_equals(e.innerText, expectedPlain, "innerText"); + assert_equals(e.outerText, expectedPlain, "outerText"); container.textContext = ''; }, msg + ' (' + format_value(html) + ')'); } diff --git a/html/dom/elements/the-innertext-idl-attribute/getter-first-letter-marker-multicol.html b/html/dom/elements/the-innertext-and-outertext-properties/getter-first-letter-marker-multicol.html similarity index 69% rename from html/dom/elements/the-innertext-idl-attribute/getter-first-letter-marker-multicol.html rename to html/dom/elements/the-innertext-and-outertext-properties/getter-first-letter-marker-multicol.html index 77a815c5410aac..3b579dca1c5e4d 100644 --- a/html/dom/elements/the-innertext-idl-attribute/getter-first-letter-marker-multicol.html +++ b/html/dom/elements/the-innertext-and-outertext-properties/getter-first-letter-marker-multicol.html @@ -1,5 +1,5 @@ -Test innerText for a combination of a list item with ::first-letter in multicol +Test innerText/outerText for a combination of a list item with ::first-letter in multicol @@ -12,6 +12,7 @@
PASS
diff --git a/html/dom/elements/the-innertext-idl-attribute/getter-tests.js b/html/dom/elements/the-innertext-and-outertext-properties/getter-tests.js similarity index 100% rename from html/dom/elements/the-innertext-idl-attribute/getter-tests.js rename to html/dom/elements/the-innertext-and-outertext-properties/getter-tests.js diff --git a/html/dom/elements/the-innertext-idl-attribute/getter.html b/html/dom/elements/the-innertext-and-outertext-properties/getter.html similarity index 92% rename from html/dom/elements/the-innertext-idl-attribute/getter.html rename to html/dom/elements/the-innertext-and-outertext-properties/getter.html index c84bb04a2f4740..ffb3d34fe94143 100644 --- a/html/dom/elements/the-innertext-idl-attribute/getter.html +++ b/html/dom/elements/the-innertext-and-outertext-properties/getter.html @@ -1,5 +1,5 @@ -innerText getter test +innerText/outerText getter test