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

Differentiate base URL from URL #203

Merged
merged 1 commit into from
Oct 14, 2021
Merged

Differentiate base URL from URL #203

merged 1 commit into from
Oct 14, 2021

Conversation

PaperStrike
Copy link
Owner

@PaperStrike PaperStrike commented Oct 14, 2021

Motivation and Context

  • The standard algorithm to parse a URL uses the "base URL" of a document. Submission lib, Script lib, and weakLoad func mistakenly use the "URL" of the document.

How Has This Been Tested?

Unfortunately, there's no plan for Submission lib and weakLoad func test cases, yet. Script lib uses document.baseURI in a way indistinguishable from using any absolute URL.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactor (no bug fix and new feature but improvements)

Checklist:

  • My change requires new tests.
  • I have added tests to cover my changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

* The standard algorithm to parse a URL uses the "base URL" of a document[^1]. Submission lib, Script lib, and `weakLoad` func mistakenly use the "URL" of the document.

[^1]: https://html.spec.whatwg.org/multipage/urls-and-fetching.html#parse-a-url
@PaperStrike PaperStrike added bug Something isn't working minor Pull requests that require a minor version update labels Oct 14, 2021
@PaperStrike PaperStrike merged commit a16519b into main Oct 14, 2021
@PaperStrike PaperStrike deleted the doc-base-uri branch October 14, 2021 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor Pull requests that require a minor version update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant