(url, opt_nocache)
| 75 | * @return {!Location} |
| 76 | */ |
| 77 | export function parseUrlDeprecated(url, opt_nocache) { |
| 78 | if (!cachedAnchorEl) { |
| 79 | cachedAnchorEl = /** @type {!HTMLAnchorElement} */ ( |
| 80 | self.document.createElement('a') |
| 81 | ); |
| 82 | urlCache = mode.isEsm() |
| 83 | ? null |
| 84 | : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100)); |
| 85 | } |
| 86 | |
| 87 | return parseUrlWithA( |
| 88 | cachedAnchorEl, |
| 89 | url, |
| 90 | mode.isEsm() || opt_nocache ? null : urlCache |
| 91 | ); |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Returns a Location-like object for the given URL. If it is relative, |
no test coverage detected