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 invalid urlpattern test(s) #49782

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

anonrig
Copy link
Member

@anonrig anonrig commented Dec 19, 2024

Fixes whatwg/urlpattern#239

Port calls canonicalizePort which just calls url parser setter, which removes the leading trailing c0 whitespace characters from the input.

cc @annevk @lucacasonato @sisidovski

@wpt-pr-bot
Copy link
Collaborator

There are no reviewers for this pull request. Please reach out on the chat room to get help with this. Thank you!

@annevk
Copy link
Member

annevk commented Dec 19, 2024

cc @sisidovski

@annevk
Copy link
Member

annevk commented Dec 19, 2024

Aside: are there no tests where port is assigned to something that is clearly not a port?

@anonrig anonrig force-pushed the anonrig/fix-wpt-for-urlpattern branch 3 times, most recently from d66cd3c to 1e055be Compare December 19, 2024 15:50
@anonrig
Copy link
Member Author

anonrig commented Dec 19, 2024

Aside: are there no tests where port is assigned to something that is clearly not a port?

@annevk I'm not sure. By the way, port is not the only wrong test here. As I progress with Ada's implementation, it seems hostname tests are also wrong.

@anonrig anonrig force-pushed the anonrig/fix-wpt-for-urlpattern branch from 1e055be to 68ffecf Compare December 19, 2024 15:53
@anonrig anonrig force-pushed the anonrig/fix-wpt-for-urlpattern branch from 68ffecf to 153c3e9 Compare December 19, 2024 15:54
@anonrig
Copy link
Member Author

anonrig commented Dec 19, 2024

@annevk I've added a new commit that includes a test for a failing port field.

@anonrig anonrig changed the title fix invalid urlpattern test fix invalid urlpattern test(s) Dec 19, 2024
@anonrig anonrig mentioned this pull request Dec 19, 2024
6 tasks
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.

Spec and WPT inconsistencies
3 participants