From 2948659e21c0cc8eba4b92e13d6d208ec21674ec Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Tue, 10 Jan 2023 16:15:19 -0800 Subject: [PATCH] Replace ARIA reflection attribute ariaErrorMessageElement with ariaErrorMessageElements This is WPT updates for https://github.com/w3c/aria/pull/1802 --- custom-elements/ElementInternals-accessibility.html | 3 ++- .../reactions/AriaMixin-element-attributes.html | 2 +- html/dom/aria-element-reflection.html | 12 ++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/custom-elements/ElementInternals-accessibility.html b/custom-elements/ElementInternals-accessibility.html index b823a9ddea8447..88d45b76028b13 100644 --- a/custom-elements/ElementInternals-accessibility.html +++ b/custom-elements/ElementInternals-accessibility.html @@ -38,7 +38,7 @@ "ariaDescribedByElements", "ariaDetailsElements", "ariaDisabled", - "ariaErrorMessageElement", + "ariaErrorMessageElements", "ariaExpanded", "ariaFlowToElements", "ariaHasPopup", @@ -76,4 +76,5 @@ assert_inherits(element.internals, property); }, property + " is defined in ElementInternals"); } +test(() => assert_false(!!element.internals.ariaErrorMessageElement), 'ariaErrorMessageElement is not defined in ElementInternals') diff --git a/custom-elements/reactions/AriaMixin-element-attributes.html b/custom-elements/reactions/AriaMixin-element-attributes.html index 09e62b2d39c5e7..eec6dee03b74fc 100644 --- a/custom-elements/reactions/AriaMixin-element-attributes.html +++ b/custom-elements/reactions/AriaMixin-element-attributes.html @@ -55,7 +55,7 @@ testElementReflectAttribute('ariaControlsElements', 'aria-controls', [dummy1], [dummy2], 'ariaControlsElements in Element'); testElementReflectAttribute('ariaDescribedByElements', 'aria-describedby', [dummy1], [dummy2], 'ariaDescribedByElements in Element'); testElementReflectAttribute('ariaDetailsElements', 'aria-details', [dummy1], [dummy2], 'ariaDetailsElements in Element'); -testElementReflectAttribute('ariaErrorMessageElement', 'aria-errormessage', dummy1, dummy2, 'ariaErrorMessageElement in Element'); +testElementReflectAttribute('ariaErrorMessageElements', 'aria-errormessage', [dummy1], [dummy2], 'ariaErrorMessageElements in Element'); testElementReflectAttribute('ariaFlowToElements', 'aria-flowto', [dummy1], [dummy2], 'ariaFlowToElements in Element'); testElementReflectAttribute('ariaLabelledByElements', 'aria-labelledby', [dummy1], [dummy2], 'ariaLabelledByElements in Element') testElementReflectAttribute('ariaOwnsElements', 'aria-owns', [dummy1], [dummy2], 'ariaOwnsElements in Element') diff --git a/html/dom/aria-element-reflection.html b/html/dom/aria-element-reflection.html index 991f7c7aa12d87..af0efcfd4d09d0 100644 --- a/html/dom/aria-element-reflection.html +++ b/html/dom/aria-element-reflection.html @@ -122,16 +122,16 @@