Set rel and href as attributes Change-Id: Id261a8f4ce5408789e19129ba293acc7972e0f45
diff --git a/gr-editor/gr-editor.js b/gr-editor/gr-editor.js index 4f1c175..c88e2a8 100644 --- a/gr-editor/gr-editor.js +++ b/gr-editor/gr-editor.js
@@ -46,8 +46,8 @@ (document.head.querySelector('link[href="' + href + '"][import-href]')); if (!link) { link = /** @type {HTMLLinkElement} */ (document.createElement('link')); - link.rel = 'import'; - link.href = href; + link.setAttribute('rel', 'import'); + link.setAttribute('href', href); link.setAttribute('import-href', ''); } // NOTE: the link may now be in 3 states: (1) pending insertion,