* Prepends the current path to all elements that have an attribute pointing to a `FuncIRI` * reference. This is required because WebKit browsers require references to be prefixed with * the current path, if the page has a `base` tag.
(path: string)
| 401 | * the current path, if the page has a `base` tag. |
| 402 | */ |
| 403 | private _prependPathToReferences(path: string) { |
| 404 | const elements = this._elementsWithExternalReferences; |
| 405 | |
| 406 | if (elements) { |
| 407 | elements.forEach((attrs, element) => { |
| 408 | attrs.forEach(attr => { |
| 409 | element.setAttribute(attr.name, `url('${path}#${attr.value}')`); |
| 410 | }); |
| 411 | }); |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | /** |
| 416 | * Caches the children of an SVG element that have `url()` |
no outgoing calls
no test coverage detected