diff --git a/src/declaration/prototype.js b/src/declaration/prototype.js
index 07acbe001f..7d811d27e7 100644
--- a/src/declaration/prototype.js
+++ b/src/declaration/prototype.js
@@ -68,6 +68,9 @@
this.parseHostEvents();
// install external stylesheets as if they are inline
this.installSheets();
+ //
+ this.adjustShadowElement();
+ //
// TODO(sorvell): install a helper method this.resolvePath to aid in
// setting resource paths. e.g.
// this.$.image.src = this.resolvePath('images/foo.png')
@@ -83,6 +86,20 @@
this.prototype.registerCallback(this);
}
},
+ // TODO(sorvell): remove when spec addressed:
+ // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22460
+ // make be
+ adjustShadowElement: function() {
+ var content = this.templateContent();
+ if (content) {
+ var s$ = content.querySelectorAll('shadow');
+ for (var i=0, l=s$.length, s; (i