Skip to content

Commit

Permalink
Remove opt-in. Exclude content from copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Sep 21, 2016
1 parent ebf31ca commit 41e5dc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/lib/annotations/annotations.html
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/polymer-dom-content.html
Expand Up @@ -32,7 +32,7 @@
<dom-module id="x-dist-slot">
<template>
x-dist
<div id="distWrapper"><slot id="content" name="foo" auto-content></slot></div>
<div id="distWrapper"><slot id="content" name="foo"></slot></div>
</template>
<script>
HTMLImports.whenReady(function() {
Expand Down

0 comments on commit 41e5dc0

Please sign in to comment.