Skip to content

Commit

Permalink
Resolve a relative URL in resources on a bundle's URL, instead of doc…
Browse files Browse the repository at this point in the history
…ument's base URL

The discussion is:
#699 (comment)
  • Loading branch information
hayatoito committed Oct 27, 2021
1 parent 658b98f commit 95a5775
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions explainers/subresource-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,13 @@ protocol
handler](https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-registerprotocolhandler)
for its scheme.

A URL in `source` and `resources` can be a [relative
URL](https://url.spec.whatwg.org/#syntax-url-relative) to a document.
A browser must [parse a URL](https://html.spec.whatwg.org/#parse-a-url)
using document's [base URL](https://html.spec.whatwg.org/#document-base-url).
A URL in `source` can be a [relative
URL](https://url.spec.whatwg.org/#syntax-url-relative) and must be resolved on
document's [base URL](https://html.spec.whatwg.org/#document-base-url).

A URL in `resources` can be a [relative
URL](https://url.spec.whatwg.org/#syntax-url-relative) and must be resolved on
the bundle's URL.

`<script type="webbundle">` doesn't support `src=` attribute. The rule must be inline.

Expand Down

0 comments on commit 95a5775

Please sign in to comment.