From c9c690b37ab87769970e99012c2b6516e6728652 Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Tue, 14 Jan 2014 08:51:18 -0800 Subject: [PATCH] ensure iconset's src is always relative to the main document (currently only when native imports is used). --- polymer-ui-iconset.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/polymer-ui-iconset.html b/polymer-ui-iconset.html index cc7808b..6b9bc9e 100644 --- a/polymer-ui-iconset.html +++ b/polymer-ui-iconset.html @@ -43,6 +43,11 @@ offsety: 0, type: 'iconset', ready: function() { + // TODO(sorvell): ensure iconset's src is always relative to the main + // document; remove useNative when code paths are unified. + if (HTMLImports.useNative && this.src && (this.ownerDocument !== document)) { + this.src = this.resolvePath(this.src, this.ownerDocument.baseURI); + } this.super(); this.iconsChanged(); this.updateThemes();