File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " d3-selection" ,
3
- "version" : " 0.6.10 " ,
3
+ "version" : " 0.6.11 " ,
4
4
"description" : " Data-driven DOM manipulation: select elements and join them to data." ,
5
5
"keywords" : [
6
6
" d3" ,
Original file line number Diff line number Diff line change 1
1
import namespace from "./namespace" ;
2
+ import { xhtml } from "./namespaces" ;
2
3
3
4
function creatorInherit ( name ) {
4
5
return function ( ) {
5
6
var document = this . ownerDocument ,
6
7
uri = this . namespaceURI ;
7
- return uri && uri !== document . documentElement . namespaceURI
8
- ? document . createElementNS ( uri , name )
9
- : document . createElement ( name ) ;
8
+ return uri === xhtml && document . documentElement . namespaceURI === xhtml
9
+ ? document . createElement ( name )
10
+ : document . createElementNS ( uri , name ) ;
10
11
} ;
11
12
}
12
13
Original file line number Diff line number Diff line change
1
+ export var xhtml = "http://www.w3.org/1999/xhtml" ;
2
+
1
3
export default {
2
4
svg : "http://www.w3.org/2000/svg" ,
3
- xhtml : "http://www.w3.org/1999/ xhtml" ,
5
+ xhtml : xhtml ,
4
6
xlink : "http://www.w3.org/1999/xlink" ,
5
7
xml : "http://www.w3.org/XML/1998/namespace" ,
6
8
xmlns : "http://www.w3.org/2000/xmlns/"
You can’t perform that action at this time.
0 commit comments