Skip to content

Add default values to *Init dictionaries - #125

Merged
dandclark merged 2 commits into
w3c:gh-pagesfrom
ltenmoz:constructor-default-values
Jun 10, 2026
Merged

Add default values to *Init dictionaries#125
dandclark merged 2 commits into
w3c:gh-pagesfrom
ltenmoz:constructor-default-values

Conversation

@ltenmoz

@ltenmoz ltenmoz commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

The dictionaries for the constructors of EditContext objects are missing default values, so it's unclear what the corresponding attributes should be set to when they aren't passed. These are the defaults which Chrome uses, and they are very much what you would expect.

Closes #124.

@smaug----

Copy link
Copy Markdown

@dandclark

@dandclark

Copy link
Copy Markdown
Contributor

Thanks for the fix!

@dandclark
dandclark merged commit 9e3b1fd into w3c:gh-pages Jun 10, 2026
2 checks passed
beckysiegel pushed a commit to chromium/chromium that referenced this pull request Jun 11, 2026
As per [1], the Init dictionaries for EditContext events should have
default values specified. Update Blink's IDL to match the spec.

There should be no behavior change here since the C++ implementations
of the classes that take these Init dictionaries already initialized
these fields to these same values.

[1] w3c/edit-context#125

Change-Id: I957261be6cf658c9cda937cc11aa95637ee02b6f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7922898
Reviewed-by: Ashish Kumar <ashishkum@microsoft.com>
Commit-Queue: Dan Clark <daniec@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1645423}
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.

CharacterBoundsUpdateEventInit needs to have either required properties or they need to have default values

3 participants