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 URL serializer #66

Merged
merged 5 commits into from
Nov 10, 2021
Merged

Use URL serializer #66

merged 5 commits into from
Nov 10, 2021

Conversation

npm1
Copy link
Collaborator

@npm1 npm1 commented Nov 3, 2021

Fixes #62 and #63
@annevk


Preview | Diff

Copy link
Contributor

@annevk annevk left a comment

Choose a reason for hiding this comment

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

It seems resolved URL is the wrong concept here. If this holds an image request, you want https://html.spec.whatwg.org/multipage/images.html#img-req-url, right?

As that's already a string, you'll have to parse it to determine the scheme. (Although also, this seems like a flaw there, it should have been a URL.)

Do we need to strip things like username/password/fragment? It probably doesn't matter here, or are these also reported outside of this specific object in some way?

A URL's scheme doesn't include the colon. (Existing error.)

@npm1
Copy link
Collaborator Author

npm1 commented Nov 3, 2021

It seems resolved URL is the wrong concept here. If this holds an image request, you want https://html.spec.whatwg.org/multipage/images.html#img-req-url, right?

Yea, that sounds good.

As that's already a string, you'll have to parse it to determine the scheme. (Although also, this seems like a flaw there, it should have been a URL.)

Done

Do we need to strip things like username/password/fragment? It probably doesn't matter here, or are these also reported outside of this specific object in some way?

Not reported outside of this object.

A URL's scheme doesn't include the colon. (Existing error.)

Done

Copy link
Contributor

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Looks good, except for a minor linking issue.

index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
annevk pushed a commit to whatwg/html that referenced this pull request Nov 5, 2021
@npm1
Copy link
Collaborator Author

npm1 commented Nov 5, 2021

I guess I need to wait a day or so for bikeshed to pick up the new exports? I tried bikeshed update just now and it still does not pick up the new exports added on HTML. I can try again on Monday.

@annevk
Copy link
Contributor

annevk commented Nov 8, 2021

Yeah, generally it takes about a day. If it continues failing I recommend reaching out to Tab Atkins.

@npm1
Copy link
Collaborator Author

npm1 commented Nov 9, 2021

Does this look good @annevk?

Copy link
Contributor

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Yeah thanks.

It's worth filing a follow-up bug for the other references to HTML. They ought to either be exported or some refactoring should be done, depending.

@npm1
Copy link
Collaborator Author

npm1 commented Nov 10, 2021

Sounds good, filed #67

@npm1 npm1 merged commit 0236f88 into main Nov 10, 2021
@npm1 npm1 deleted the serializer branch November 10, 2021 15:31
dandclark pushed a commit to dandclark/html that referenced this pull request Dec 4, 2021
mfreed7 pushed a commit to mfreed7/html that referenced this pull request Jun 3, 2022
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.

url getter does not handle request being null
2 participants