blob: 04533bb6e6ff19adbdb0c1245d79e16722089969 [file]
import "../core/document";
import "../core/ns";
import "selection";
d3_selectionPrototype.append = function(name) {
name = d3_selection_creator(name);
return this.select(function() {
return this.appendChild(name.apply(this, arguments));
});
};
function d3_selection_creator(name) {
return typeof name === "function" ? name
: (name = d3.ns.qualify(name)).local ? function() { return this.ownerDocument.createElementNS(name.space, name.local); }
: function() { return this.ownerDocument.createElementNS(this.namespaceURI, name); };
}