1
// TODO insert(node, function)?
2
// TODO insert(function, string)?
3
// TODO insert(function, function)?
4
d3_selectionPrototype.insert = function(name, before) {
5
name = d3.ns.qualify(name);
8
return this.insertBefore(
9
document.createElementNS(this.namespaceURI, name),
10
d3_select(before, this));
14
return this.insertBefore(
15
document.createElementNS(name.space, name.local),
16
d3_select(before, this));
19
return this.select(name.local ? insertNS : insert);