Skip to content

Commit

Permalink
Update webidl to allow matched group values to be undefined. (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanderview committed Feb 2, 2022
1 parent 276ef33 commit d4fb593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ dictionary URLPatternResult {

dictionary URLPatternComponentResult {
USVString input;
record<USVString, USVString> groups;
record<USVString, (USVString or undefined)> groups;
};
</xmp>

Expand Down Expand Up @@ -438,7 +438,7 @@ A [=component=] has an associated <dfn for=component>group name list</dfn>, a [=

1. Let |result| be a new {{URLPatternComponentResult}}.
1. Set |result|["{{URLPatternComponentResult/input}}"] to |input|.
1. Let |groups| be a <code>[=record=]<{{USVString}}, {{USVString}}></code>.
1. Let |groups| be a <code>[=record=]<{{USVString}}, ({{USVString}} or {{undefined}})></code>.
1. Let |index| be 1.
1. While |index| is less than [$Get$](|execResult|, "`length`"):
1. Let |name| be |component|'s [=component/group name list=][|index| &minus; 1].
Expand Down

0 comments on commit d4fb593

Please sign in to comment.