1- "use strict" ;
2-
31var getEffProp = function ( name ) {
42 return function ( doc ) {
53 return function ( ) {
@@ -8,106 +6,105 @@ var getEffProp = function (name) {
86 } ;
97} ;
108
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" ) ;
2017
21- exports . getElementsByTagName = function ( localName ) {
18+ export function getElementsByTagName ( localName ) {
2219 return function ( doc ) {
2320 return function ( ) {
2421 return doc . getElementsByTagName ( localName ) ;
2522 } ;
2623 } ;
27- } ;
24+ }
2825
29- exports . _getElementsByTagNameNS = function ( ns ) {
26+ export function _getElementsByTagNameNS ( ns ) {
3027 return function ( localName ) {
3128 return function ( doc ) {
3229 return function ( ) {
3330 return doc . getElementsByTagNameNS ( ns , localName ) ;
3431 } ;
3532 } ;
3633 } ;
37- } ;
34+ }
3835
39- exports . getElementsByClassName = function ( classNames ) {
36+ export function getElementsByClassName ( classNames ) {
4037 return function ( doc ) {
4138 return function ( ) {
4239 return doc . getElementsByClassName ( classNames ) ;
4340 } ;
4441 } ;
45- } ;
42+ }
4643
47- exports . createElement = function ( localName ) {
44+ export function createElement ( localName ) {
4845 return function ( doc ) {
4946 return function ( ) {
5047 return doc . createElement ( localName ) ;
5148 } ;
5249 } ;
53- } ;
50+ }
5451
55- exports . _createElementNS = function ( ns ) {
52+ export function _createElementNS ( ns ) {
5653 return function ( qualifiedName ) {
5754 return function ( doc ) {
5855 return function ( ) {
5956 return doc . createElementNS ( ns , qualifiedName ) ;
6057 } ;
6158 } ;
6259 } ;
63- } ;
60+ }
6461
65- exports . createDocumentFragment = function ( doc ) {
62+ export function createDocumentFragment ( doc ) {
6663 return function ( ) {
6764 return doc . createDocumentFragment ( ) ;
6865 } ;
69- } ;
66+ }
7067
71- exports . createTextNode = function ( data ) {
68+ export function createTextNode ( data ) {
7269 return function ( doc ) {
7370 return function ( ) {
7471 return doc . createTextNode ( data ) ;
7572 } ;
7673 } ;
77- } ;
74+ }
7875
79- exports . createComment = function ( data ) {
76+ export function createComment ( data ) {
8077 return function ( doc ) {
8178 return function ( ) {
8279 return doc . createComment ( data ) ;
8380 } ;
8481 } ;
85- } ;
82+ }
8683
87- exports . createProcessingInstruction = function ( target ) {
84+ export function createProcessingInstruction ( target ) {
8885 return function ( data ) {
8986 return function ( doc ) {
9087 return function ( ) {
9188 return doc . createProcessingInstruction ( target , data ) ;
9289 } ;
9390 } ;
9491 } ;
95- } ;
92+ }
9693
97- exports . importNode = function ( node ) {
94+ export function importNode ( node ) {
9895 return function ( deep ) {
9996 return function ( doc ) {
10097 return function ( ) {
10198 return doc . importNode ( node , deep ) ;
10299 } ;
103100 } ;
104101 } ;
105- } ;
102+ }
106103
107- exports . adoptNode = function ( node ) {
104+ export function adoptNode ( node ) {
108105 return function ( doc ) {
109106 return function ( ) {
110107 return doc . adoptNode ( node ) ;
111108 } ;
112109 } ;
113- } ;
110+ }
0 commit comments