From 41e5dc03c0477312715d604c886636df66069e12 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Wed, 21 Sep 2016 16:28:11 -0700 Subject: [PATCH] Remove opt-in. Exclude content from copy. --- src/lib/annotations/annotations.html | 5 +++-- test/unit/polymer-dom-content.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/annotations/annotations.html b/src/lib/annotations/annotations.html index 14c980f977..03741b2cee 100644 --- a/src/lib/annotations/annotations.html +++ b/src/lib/annotations/annotations.html @@ -233,7 +233,7 @@ !node.hasAttribute('preserve-content')) { this._parseTemplate(node, i, list, annote); } - if (node.localName == 'slot' && node.hasAttribute('auto-content')) { + if (node.localName == 'slot') { node = this._replaceSlotWithContent(node); } // collapse adjacent textNodes: fixes an IE issue that can cause @@ -277,7 +277,8 @@ var attr = attrs[i]; if (attr.name == 'name') { content.setAttribute('select', '[slot=\'' + attr.value + '\']'); - } else { + } + if (attr.name !== 'select') { content.setAttribute(attr.name, attr.value); } } diff --git a/test/unit/polymer-dom-content.html b/test/unit/polymer-dom-content.html index 743089d405..6337bda960 100644 --- a/test/unit/polymer-dom-content.html +++ b/test/unit/polymer-dom-content.html @@ -32,7 +32,7 @@