Skip to content

Export EmptyResult dfn for cross-spec referencing#1116

Merged
jgraham merged 1 commit into
w3c:mainfrom
marcoscaceres:export-empty-result
Jun 1, 2026
Merged

Export EmptyResult dfn for cross-spec referencing#1116
jgraham merged 1 commit into
w3c:mainfrom
marcoscaceres:export-empty-result

Conversation

@marcoscaceres

@marcoscaceres marcoscaceres commented May 7, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds an exported <dfn> for EmptyResult so other specs can reference it via xref.

Motivation

Needed by w3c-fedid/digital-credentials#381 which defines a WebDriver BiDi extension command (digitalCredentials.setVirtualWalletBehavior) whose result type references EmptyResult.

Currently, the CDDL rule is defined but has no corresponding exported dfn, so cross-spec tooling (ReSpec xref, Bikeshed cross-refs) cannot resolve it.

Verification

Ran bikeshed spec locally — clean build.


Preview | Diff

Add an exported <dfn> for EmptyResult so other specs can reference it
via xref (e.g., [=EmptyResult=] with data-cite="webdriver-bidi").

Needed by w3c-fedid/digital-credentials#381 which defines a WebDriver
BiDi extension command whose result type uses EmptyResult.

@OrKoN OrKoN left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Although I wonder if if it useful since in the CDDL section you would not be able to import EmptyResult. Perhaps just using an extensible empty object in external specs would be sufficient. I think we also had a discussion about exporting CDDL definitions directly but I do not recall what we end up with. cc @tidoust @jgraham @mohamedamir

@OrKoN OrKoN requested a review from jgraham May 11, 2026 14:49
@css-meeting-bot

Copy link
Copy Markdown
Member

The Browser Testing and Tools Working Group just discussed Export EmptyResult dfn for cross-spec referencing.

The full IRC log of that discussion <jgraham> Topic: Export EmptyResult dfn for cross-spec referencing
<jgraham> github: https://github.com//pull/1116
<tidoust> orkon: exporting EmptyResult is kind of separated from the CDDL. Should we accept this PR or is there something we may do for the CDDL.
<tidoust> q+
<jgraham> ScribeNick: jgraham
<jgraham> ack next
<jgraham> tidoust: Right now the CDDL definitions aren't exported by default because in theory there could be mutliple specs defining different bits of CDDL. There are already some that define CDDL and they aren't in common and shouldn't be in the same namespace. Totally fine to export one. `EmptyResult` is a very generic name so another spec might have a
<jgraham> slightly different version with the same name. What's missing is a way to export the definition for a specific set of specifications. One way that might work is to namespace the definitions. I think it's fine.
<jgraham> jgraham: Seems like we could accept the PR, but look for a more generic solution in the future.

@jgraham jgraham merged commit c999c06 into w3c:main Jun 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants