Closed Bug 1573083 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 18344 - WIP: Reflect aria-activedescendant as an element reference

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 18344 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/18344
Details from upstream follow.

Meredith Lane <meredithl@chromium.org> wrote:

WIP: Reflect aria-activedescendant as an element reference

Spec: https://whatpr.org/html/3917/common-dom-interfaces.html#reflecting-content-attributes-in-idl-attributes:element

This change:

  • updates v8 bindings and IDL
  • Implements (most) of the HTML spec for reflection for a single aria attribute.

This is a WIP, and largely just to elicit feedback. Particularly on:

  1. There is a full set of aria attributes that should support
    element reflection. How can we autogenerate code for these to
    avoid having to update implementation files as much as possible?

  2. How can these element references be stored efficiently?

  3. Should the IDL element be available when the dom is parsed?
    i.e:
    \<div id="foo" aria-activedescendant="bar">\</div>
    \<div id="bar">\</div>

    ...

    fooReference.ariaActiveDescendant // barReference

BUG=981423

Change-Id: I35164b436c7e2ffd67a80ebd26e4233189e445b3
Reviewed-on: https://chromium-review.googlesource.com/1687013
WPT-Export-Revision: a3e962ac3332a82449de6c603c92f265f58261a4

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Ran 1 tests and 6 subtests OK : 1 FAIL : 6 New tests that have failures or other problems: /dom/nodes/aria-element-reflection.tentative.html Reassigning an ID reflects the correct element in the DOM.: FAIL Setting an element reference that crosses into a shadow tree is disallowed, but setting one that is in a shadow inclusive ancestor is allowed.: FAIL aria-activedescendant element reflection: FAIL aria-details: FAIL aria-errormessage: FAIL element reflection with multiple ids: FAIL
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/80d4196c585f [wpt PR 18344] - ElementReflection: ariaActiveDescendant, ariaErrorMessage, ariaDetails, a=testonly https://hg.mozilla.org/integration/mozilla-inbound/rev/fa7bfb0196eb [wpt PR 18344] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.