mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-05-18 15:56:32 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user