Skip to content

Fix empty label handling#39

Merged
domenic merged 3 commits intomasterfrom
fix-checkbidi
Mar 8, 2023
Merged

Fix empty label handling#39
domenic merged 3 commits intomasterfrom
fix-checkbidi

Conversation

@domenic
Copy link
Copy Markdown
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