Skip to content

Commit a829cbc

Browse files
committed
Add comments about resolveUrl idiosyncrasies.
1 parent 127bc86 commit a829cbc

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

lib/mixins/element-mixin.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,10 @@
627627
* this element. This method will return the same URL before and after
628628
* bundling.
629629
*
630+
* Note that this function performs no resolution for URLs that start
631+
* with `/` (absolute URLs) or `#` (hash identifiers). For general purpose
632+
* URL resolution, use `window.URL`.
633+
*
630634
* @param {string} url URL to resolve.
631635
* @param {string=} base Optional base URL to resolve against, defaults
632636
* to the element's `importPath`

lib/utils/resolve-url.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
let resolveDoc;
2121
/**
2222
* Resolves the given URL against the provided `baseUri'.
23+
*
24+
* Note that this function performs no resolution for URLs that start
25+
* with `/` (absolute URLs) or `#` (hash identifiers). For general purpose
26+
* URL resolution, use `window.URL`.
2327
*
2428
* @memberof Polymer.ResolveUrl
2529
* @param {string} url Input URL to resolve

0 commit comments

Comments
 (0)