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

Use the basic URL parser when parsing URLs #248

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

jeremyroman
Copy link
Collaborator

@jeremyroman jeremyroman commented Jan 8, 2025

Blob handling is not required, since the resulting URL is not stored in any way that would make the blob handling visible. This is consistent with what the URL constructor and similar uses do.

This change should not be observable.

Partially addresses #242.


Preview | Diff

Blob handling is not required, since the resulting URL is not stored in
any way that would make the blob handling visible. This is consistent
with what the URL constructor and similar uses do.

This change should not be observable.

Partially addresses whatwg#242.
@jeremyroman
Copy link
Collaborator Author

This is not quite editorial but close to it as I think it's more or less just clarification and simplification.

@jeremyroman jeremyroman requested a review from sisidovski January 8, 2025 21:36
@jeremyroman
Copy link
Collaborator Author

@shannonbooth I think this should address your first comment in #242, right?

@sisidovski Please review.

@shannonbooth
Copy link

Yup, this fixes that portion of the issue, thanks!

Though I will mention that the HTML spec uses the language: "basic URL parse" in text to differentiate the two types of parsing so that the reader can know which one is called without needing to navigate to the spec link (the difference in language here - lack of "basic") is what made me notice the issue). So I personally think it would be nice to specifically say "basic URL parse" or similar, which would also be consistent with the canonicalization steps (e.g https://urlpattern.spec.whatwg.org/#canonicalize-a-protocol)

@jeremyroman
Copy link
Collaborator Author

Fair, I'll use "running the basic URL parser on url [with base]" wording as used elsewhere here and in the URL living standard.

@jeremyroman jeremyroman merged commit 541a853 into whatwg:main Jan 9, 2025
2 checks passed
@jeremyroman jeremyroman deleted the basic-url-parser branch January 9, 2025 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants