From cf1000628c3bb55f25c2a6338328432161b35e49 Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Mon, 9 Jan 2023 15:43:50 -0800 Subject: [PATCH] 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} --- .../popover-invoking-attribute.tentative.html | 16 ++++++++++------ ...popover-top-layer-combinations.tentative.html | 2 +- interfaces/popover.tentative.idl | 8 +++----- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/html/semantics/popovers/popover-invoking-attribute.tentative.html b/html/semantics/popovers/popover-invoking-attribute.tentative.html index 5ce315ef1d9ea7..b49bb4e4a34ced 100644 --- a/html/semantics/popovers/popover-invoking-attribute.tentative.html +++ b/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: `