Skip to content

Commit 8c1a705

Browse files
committed
Merge remote-tracking branch 'origin/fix-cross-document' into 3.3.7
2 parents 7af610b + b641eb5 commit 8c1a705

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

d3.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,9 +716,9 @@ d3 = function() {
716716
};
717717
function d3_selection_creator(name) {
718718
return typeof name === "function" ? name : (name = d3.ns.qualify(name)).local ? function() {
719-
return d3_document.createElementNS(name.space, name.local);
719+
return this.ownerDocument.createElementNS(name.space, name.local);
720720
} : function() {
721-
return d3_document.createElementNS(this.namespaceURI, name);
721+
return this.ownerDocument.createElementNS(this.namespaceURI, name);
722722
};
723723
}
724724
d3_selectionPrototype.insert = function(name, before) {

0 commit comments

Comments
 (0)