From a410b6f78fd7760b4d9775f9a245be954edaaeea Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Mon, 16 Jan 2023 14:13:38 +0000 Subject: [PATCH] Bug 1809253 [wpt PR 37815] - Change popover invoking attributes to use Element reflection, a=testonly Automatic update from web-platform-tests Change popover invoking attributes to use Element reflection Per the conversation at [1], we've decided to make the IDL reflections of the invoking attributes (popovertoggletarget, popovershowtarget, and popoverhidetarget) use Element reflection, and be named accordingly. [1] https://github.com/whatwg/html/pull/8221#discussion_r1007512821 Fixed: 1405856 Bug: 1307772 Change-Id: Iace783795c2db7a19e11fbc4f0c4da33a8765779 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4148056 Auto-Submit: Mason Freed Commit-Queue: Mason Freed Reviewed-by: Joey Arhar Commit-Queue: Joey Arhar Cr-Commit-Position: refs/heads/main@{#1090582} -- wpt-commits: a0ddc451e02afbbe600c679fe1edab0e4f878ecf wpt-pr: 37815 --- .../popover-invoking-attribute.tentative.html | 16 ++++++++++------ ...popover-top-layer-combinations.tentative.html | 2 +- .../tests/interfaces/popover.tentative.idl | 8 +++----- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/testing/web-platform/tests/html/semantics/popovers/popover-invoking-attribute.tentative.html b/testing/web-platform/tests/html/semantics/popovers/popover-invoking-attribute.tentative.html index 5ce315ef1d9ea..b49bb4e4a34ce 100644 --- a/testing/web-platform/tests/html/semantics/popovers/popover-invoking-attribute.tentative.html +++ b/testing/web-platform/tests/html/semantics/popovers/popover-invoking-attribute.tentative.html @@ -34,6 +34,10 @@ return el; }; } +function setInvokingContentAttribute(invoker,attr,idref) { + invoker.setAttribute(attr,idref); + assert_equals(invoker[attr + "Element"],document.getElementById(idref)); +} const supportedButtonTypes = ['button','reset','submit',''].map(type => { return { name: `