diff --git a/iron-list.html b/iron-list.html
index e12e3d2b..5c62db09 100644
--- a/iron-list.html
+++ b/iron-list.html
@@ -941,7 +941,12 @@
// TODO(blasten):
// First element child is item; Safari doesn't support children[0]
// on a doc fragment. Test this to see if it still matters.
- physicalItems[i] = inst.root.querySelector('*');
+ var newItem = inst.root.querySelector('*');
+ var templateSlotAttribute = this._userTemplate.getAttribute('slot');
+ if (templateSlotAttribute) {
+ newItem.setAttribute('slot', templateSlotAttribute);
+ }
+ physicalItems[i] = newItem;
this._itemsParent.appendChild(inst.root);
}
return physicalItems;
diff --git a/test/fixtures/o-named-list.html b/test/fixtures/o-named-list.html
new file mode 100644
index 00000000..6aef040c
--- /dev/null
+++ b/test/fixtures/o-named-list.html
@@ -0,0 +1,24 @@
+
+
+
+
+
+
diff --git a/test/named-slot.html b/test/named-slot.html new file mode 100644 index 00000000..d58b6285 --- /dev/null +++ b/test/named-slot.html @@ -0,0 +1,106 @@ + + + +
+ +
+ + + + + + + + + +
+