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

Fix empty label handling #39

Merged
merged 3 commits into from
Mar 8, 2023
Merged

Fix empty label handling #39

merged 3 commits into from
Mar 8, 2023

Conversation

domenic
Copy link
Member

@domenic domenic commented Mar 4, 2023

As discovered in jsdom/whatwg-url#250, the library currently does not handle empty labels in the same way that browsers seem to do. Although the standard is unclear, we should align to browser handling.

To test this, we pull in the new IdnaTestV2.json file from WPT. This is somewhat redundant with our existing IdnaTestV2.txt, but it also represents a significant curation effort to ensure we only have URL-applicable tests, so we should make use of that.

This won't pass until web-platform-tests/wpt#38813 is merged and we update the test commit SHA.

As discovered in jsdom/whatwg-url#250, the library currently does not handle empty labels in the same way that browsers seem to do. Although the standard is unclear, we should align to browser handling.

To test this, we pull in the new IdnaTestV2.json file from WPT. This is somewhat redundant with our existing IdnaTestV2.txt, but it also represents a significant curation effort to ensure we only have URL-applicable tests, so we should make use of that.
@domenic domenic requested a review from TimothyGu March 4, 2023 08:22
@domenic domenic mentioned this pull request Mar 4, 2023
@domenic domenic merged commit a6c5932 into master Mar 8, 2023
@domenic domenic deleted the fix-checkbidi branch March 8, 2023 06:54
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.

2 participants