1
- "use strict" ;
2
-
3
1
var getEffProp = function ( name ) {
4
2
return function ( doc ) {
5
3
return function ( ) {
@@ -8,106 +6,105 @@ var getEffProp = function (name) {
8
6
} ;
9
7
} ;
10
8
11
- exports . url = getEffProp ( "URL" ) ;
12
- exports . documentURI = getEffProp ( "documentURI" ) ;
13
- exports . origin = getEffProp ( "origin" ) ;
14
- exports . compatMode = getEffProp ( "compatMode" ) ;
15
- exports . characterSet = getEffProp ( "characterSet" ) ;
16
- exports . contentType = getEffProp ( "contentType" ) ;
17
-
18
- exports . _doctype = getEffProp ( "doctype" ) ;
19
- exports . _documentElement = getEffProp ( "documentElement" ) ;
9
+ export const url = getEffProp ( "URL" ) ;
10
+ export const documentURI = getEffProp ( "documentURI" ) ;
11
+ export const origin = getEffProp ( "origin" ) ;
12
+ export const compatMode = getEffProp ( "compatMode" ) ;
13
+ export const characterSet = getEffProp ( "characterSet" ) ;
14
+ export const contentType = getEffProp ( "contentType" ) ;
15
+ export const _doctype = getEffProp ( "doctype" ) ;
16
+ export const _documentElement = getEffProp ( "documentElement" ) ;
20
17
21
- exports . getElementsByTagName = function ( localName ) {
18
+ export function getElementsByTagName ( localName ) {
22
19
return function ( doc ) {
23
20
return function ( ) {
24
21
return doc . getElementsByTagName ( localName ) ;
25
22
} ;
26
23
} ;
27
- } ;
24
+ }
28
25
29
- exports . _getElementsByTagNameNS = function ( ns ) {
26
+ export function _getElementsByTagNameNS ( ns ) {
30
27
return function ( localName ) {
31
28
return function ( doc ) {
32
29
return function ( ) {
33
30
return doc . getElementsByTagNameNS ( ns , localName ) ;
34
31
} ;
35
32
} ;
36
33
} ;
37
- } ;
34
+ }
38
35
39
- exports . getElementsByClassName = function ( classNames ) {
36
+ export function getElementsByClassName ( classNames ) {
40
37
return function ( doc ) {
41
38
return function ( ) {
42
39
return doc . getElementsByClassName ( classNames ) ;
43
40
} ;
44
41
} ;
45
- } ;
42
+ }
46
43
47
- exports . createElement = function ( localName ) {
44
+ export function createElement ( localName ) {
48
45
return function ( doc ) {
49
46
return function ( ) {
50
47
return doc . createElement ( localName ) ;
51
48
} ;
52
49
} ;
53
- } ;
50
+ }
54
51
55
- exports . _createElementNS = function ( ns ) {
52
+ export function _createElementNS ( ns ) {
56
53
return function ( qualifiedName ) {
57
54
return function ( doc ) {
58
55
return function ( ) {
59
56
return doc . createElementNS ( ns , qualifiedName ) ;
60
57
} ;
61
58
} ;
62
59
} ;
63
- } ;
60
+ }
64
61
65
- exports . createDocumentFragment = function ( doc ) {
62
+ export function createDocumentFragment ( doc ) {
66
63
return function ( ) {
67
64
return doc . createDocumentFragment ( ) ;
68
65
} ;
69
- } ;
66
+ }
70
67
71
- exports . createTextNode = function ( data ) {
68
+ export function createTextNode ( data ) {
72
69
return function ( doc ) {
73
70
return function ( ) {
74
71
return doc . createTextNode ( data ) ;
75
72
} ;
76
73
} ;
77
- } ;
74
+ }
78
75
79
- exports . createComment = function ( data ) {
76
+ export function createComment ( data ) {
80
77
return function ( doc ) {
81
78
return function ( ) {
82
79
return doc . createComment ( data ) ;
83
80
} ;
84
81
} ;
85
- } ;
82
+ }
86
83
87
- exports . createProcessingInstruction = function ( target ) {
84
+ export function createProcessingInstruction ( target ) {
88
85
return function ( data ) {
89
86
return function ( doc ) {
90
87
return function ( ) {
91
88
return doc . createProcessingInstruction ( target , data ) ;
92
89
} ;
93
90
} ;
94
91
} ;
95
- } ;
92
+ }
96
93
97
- exports . importNode = function ( node ) {
94
+ export function importNode ( node ) {
98
95
return function ( deep ) {
99
96
return function ( doc ) {
100
97
return function ( ) {
101
98
return doc . importNode ( node , deep ) ;
102
99
} ;
103
100
} ;
104
101
} ;
105
- } ;
102
+ }
106
103
107
- exports . adoptNode = function ( node ) {
104
+ export function adoptNode ( node ) {
108
105
return function ( doc ) {
109
106
return function ( ) {
110
107
return doc . adoptNode ( node ) ;
111
108
} ;
112
109
} ;
113
- } ;
110
+ }
0 commit comments