Skip to content

Replace ?sandbox: text with ?sandbox: text / null in the spec? #391

Open
@thiagowfx

Description

@thiagowfx

Follow-up-of: #292

Could you let me know if the following is an error in the spec?

The spec says:

  1. Let |sandbox| be the value of the "sandbox" field in |command
    parameters|, if present, or null otherwise.

.i.e. null is possible. However the type specification is:

?sandbox: text

Should it have been

?sandbox: text / null

...instead? Other places in the spec have / null to denote explicit nullability possible.

The alternative would be to eliminate the explicit or null otherwise language. Here I am specifically thinking of undefined vs null in TS/JS.

I am happy to send a PR if you confirm such a fix is indeed desirable.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds-discussionIssues to be discussed by the working group

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions