From 9c6292f29403dbb2b4c5eb7affb9375160184465 Mon Sep 17 00:00:00 2001 From: Connor Brewster Date: Fri, 18 Aug 2017 13:59:53 -0500 Subject: [PATCH] Annotate insertAdjacentHTML with CEReactions --- components/script/dom/webidls/Element.webidl | 2 +- .../wpt/metadata/custom-elements/reactions/Element.html.ini | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/components/script/dom/webidls/Element.webidl b/components/script/dom/webidls/Element.webidl index 76aebda7e13..5233bcf2cc9 100644 --- a/components/script/dom/webidls/Element.webidl +++ b/components/script/dom/webidls/Element.webidl @@ -77,7 +77,7 @@ interface Element : Node { Element? insertAdjacentElement(DOMString where_, Element element); // historical [Throws] void insertAdjacentText(DOMString where_, DOMString data); - [Throws] + [CEReactions, Throws] void insertAdjacentHTML(DOMString position, DOMString html); }; diff --git a/tests/wpt/metadata/custom-elements/reactions/Element.html.ini b/tests/wpt/metadata/custom-elements/reactions/Element.html.ini index 6efc95e4d19..89e0c322ef1 100644 --- a/tests/wpt/metadata/custom-elements/reactions/Element.html.ini +++ b/tests/wpt/metadata/custom-elements/reactions/Element.html.ini @@ -6,9 +6,3 @@ [slot on Element must enqueue an attributeChanged reaction when replacing an existing attribute] expected: FAIL - [insertAdjacentHTML on Element must enqueue a connected reaction for a newly constructed custom element] - expected: FAIL - - [insertAdjacentHTML on Element must enqueue a attributeChanged reaction for a newly constructed custom element] - expected: FAIL -