Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put trusted type first when declaring union in IDL files #564

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

fred-wang
Copy link
Contributor

@fred-wang fred-wang commented Nov 15, 2024

This is for consistency with how it is done in the HTML specification and in the PR to DOM (whatwg/dom#1268). This is not web-exposed but may matter for implementations. For example, they may generate different C++ structure to represent (TrustedHTML or DOMString) and (DOMString or TrustedHTML).


Preview | Diff

@fred-wang
Copy link
Contributor Author

cc @koto @lukewarlow

spec/index.bs Outdated Show resolved Hide resolved
This is for consistency with how it is done in the HTML specification
and in the PR to DOM (whatwg/dom#1268). This
is not web-exposed but may matter for implementations. For example,
they may generate different C++ structure to represent
`(TrustedHTML or DOMString)` and `(DOMString or TrustedHTML)`.
@koto koto merged commit f97dbe9 into w3c:main Nov 18, 2024
3 checks passed
@fred-wang fred-wang deleted the union-order branch November 18, 2024 08:07
github-actions bot added a commit that referenced this pull request Nov 18, 2024
SHA: f97dbe9
Reason: push, by koto

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants