Skip to content

Commit

Permalink
Add comments about resolveUrl idiosyncrasies.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Jan 31, 2018
1 parent 127bc86 commit a829cbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mixins/element-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,10 @@
* this element. This method will return the same URL before and after
* bundling.
*
* Note that this function performs no resolution for URLs that start
* with `/` (absolute URLs) or `#` (hash identifiers). For general purpose
* URL resolution, use `window.URL`.
*
* @param {string} url URL to resolve.
* @param {string=} base Optional base URL to resolve against, defaults
* to the element's `importPath`
Expand Down
4 changes: 4 additions & 0 deletions lib/utils/resolve-url.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
let resolveDoc;
/**
* Resolves the given URL against the provided `baseUri'.
*
* Note that this function performs no resolution for URLs that start
* with `/` (absolute URLs) or `#` (hash identifiers). For general purpose
* URL resolution, use `window.URL`.
*
* @memberof Polymer.ResolveUrl
* @param {string} url Input URL to resolve
Expand Down

0 comments on commit a829cbc

Please sign in to comment.