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

Make remaining USVStrings DOMStrings #2217

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Conversation

zacknewman
Copy link
Contributor

@zacknewman zacknewman commented Nov 27, 2024

Fixes #2203.


Preview | Diff

Copy link
Member

@emlun emlun left a comment

Choose a reason for hiding this comment

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

Thank you!

I double-checked that this won't be a backwards compatibility trap, and concluded that:

  • evalByCredential further restricts the permitted character set to just the Base64Url alphabet, so it is not possible for a DOMString value to be a valid evalByCredential key but not a valid USVString.
  • For FIDO AppID we refer to the FIDO AppID and Facet Specification, and the reference chain ultimately leads to section 4.2 of RFC 5891 and a table in RFC 5892 which lists D800..FA0D ; DISALLOWED # <Non Private Use High Surrogate>..CJK COMPAT. USVString is defined as a string containing no code points in the range U+D800 to U+DFFF, inclusive. Thus it is not possible for a DOMString value to be a valid FIDO AppID but not a valid USVString.

So this change seems safe to me.

@selfissued selfissued merged commit 26e28ec into w3c:main Dec 18, 2024
2 checks passed
github-actions bot added a commit that referenced this pull request Dec 18, 2024
SHA: 26e28ec
Reason: push, by selfissued

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@zacknewman zacknewman deleted the domorigins branch December 21, 2024 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace USVString with DOMString
8 participants