Merge pull request #380 from webcomponents/379-kschaaf-content-doc

Use the inert `contentDoc` to create `content` fragment. Fixes #379.
This commit is contained in:
Steve Orvell
2015-08-13 09:53:17 -07:00

View File

@@ -29,7 +29,7 @@ if (typeof HTMLTemplateElement === 'undefined') {
*/
HTMLTemplateElement.decorate = function(template) {
if (!template.content) {
template.content = template.ownerDocument.createDocumentFragment();
template.content = contentDoc.createDocumentFragment();
}
var child;
while (child = template.firstChild) {