@@ -4,8 +4,8 @@ var utilities = require('./utilities');
4
4
5
5
var camelCase = utilities . camelCase ;
6
6
7
- var HTMLDOMPropertyConfig = reactProperty . HTMLDOMPropertyConfig ;
8
- var SVGDOMPropertyConfig = reactProperty . SVGDOMPropertyConfig ;
7
+ var htmlProperties = reactProperty . html ;
8
+ var svgProperties = reactProperty . svg ;
9
9
var isCustomAttribute = reactProperty . isCustomAttribute ;
10
10
11
11
var hasOwnProperty = Object . prototype . hasOwnProperty ;
@@ -36,8 +36,8 @@ function attributesToProps(attributes) {
36
36
37
37
// convert HTML attribute to React prop
38
38
attributeNameLowerCased = attributeName . toLowerCase ( ) ;
39
- if ( hasOwnProperty . call ( HTMLDOMPropertyConfig , attributeNameLowerCased ) ) {
40
- property = HTMLDOMPropertyConfig [ attributeNameLowerCased ] ;
39
+ if ( hasOwnProperty . call ( htmlProperties , attributeNameLowerCased ) ) {
40
+ property = htmlProperties [ attributeNameLowerCased ] ;
41
41
props [ property . propertyName ] =
42
42
property . hasBooleanValue ||
43
43
( property . hasOverloadedBooleanValue && ! attributeValue )
@@ -47,8 +47,8 @@ function attributesToProps(attributes) {
47
47
}
48
48
49
49
// convert SVG attribute to React prop
50
- if ( hasOwnProperty . call ( SVGDOMPropertyConfig , attributeName ) ) {
51
- property = SVGDOMPropertyConfig [ attributeName ] ;
50
+ if ( hasOwnProperty . call ( svgProperties , attributeName ) ) {
51
+ property = svgProperties [ attributeName ] ;
52
52
props [ property . propertyName ] = attributeValue ;
53
53
continue ;
54
54
}
0 commit comments