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

Editorial: deduplicate the relative state #509

Merged
merged 2 commits into from
May 11, 2020

Conversation

annevk
Copy link
Member

@annevk annevk commented May 10, 2020

Helps with #504.

(I'll double check with whatwg-url that this is okay in a bit.)


Preview | Diff

@annevk
Copy link
Member Author

annevk commented May 11, 2020

(file state is very similar to this, but I'll tackle that in a separate PR for clarity and ease of reviewing.)

annevk added a commit that referenced this pull request May 11, 2020
Maybe helps with #504, though this is much less convincing than #509 I think.

I also noticed there is not good coverage for file base URLs.
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for validating with whatwg-url.

<var>url</var>'s <a for=url>path</a>'s last item, if any.
<li><p>Set <var>url</var>'s <a for=url>query</a> to null.

<li><p><a for=list>Remove</a> <var>url</var>'s <a for=url>path</a>'s last item, if any.

<li><p>Set <var>state</var> to <a>path state</a> and decrease <var>pointer</var> by 1.
Copy link
Member

Choose a reason for hiding this comment

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

Might want to split this into two steps while you're here.

Copy link
Member Author

Choose a reason for hiding this comment

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

If we want to do that we should probably do that across the whole file.

@annevk annevk merged commit e5b1dd7 into master May 11, 2020
@annevk annevk deleted the annevk/relative-state-deduplication branch May 11, 2020 17:31
domenic pushed a commit to jsdom/whatwg-url that referenced this pull request May 11, 2020
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.

2 participants