diff --git a/src/lib/annotations/annotations.html b/src/lib/annotations/annotations.html index 438d4fdc21..1974b03fdb 100644 --- a/src/lib/annotations/annotations.html +++ b/src/lib/annotations/annotations.html @@ -281,8 +281,9 @@ content.setAttribute(attr.name, attr.value); } var name = slot.getAttribute('name'); - var select = name ? '[slot=\'' + name + '\']' : ':not([slot])'; - content.setAttribute('select', select); + if (name) { + content.setAttribute('select', '[slot=\'' + name + '\']'); + } slot.parentNode.replaceChild(content, slot); return content; }, diff --git a/test/unit/polymer-dom-content.html b/test/unit/polymer-dom-content.html index 2a70eaeb9f..63ae8fd642 100644 --- a/test/unit/polymer-dom-content.html +++ b/test/unit/polymer-dom-content.html @@ -32,8 +32,8 @@