mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Add comments about resolveUrl idiosyncrasies.
This commit is contained in:
@@ -627,6 +627,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* 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`
|
||||
|
||||
@@ -20,6 +20,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user