@@ -4,8 +4,8 @@ var utilities = require('./utilities');
44
55var camelCase = utilities . camelCase ;
66
7- var HTMLDOMPropertyConfig = reactProperty . HTMLDOMPropertyConfig ;
8- var SVGDOMPropertyConfig = reactProperty . SVGDOMPropertyConfig ;
7+ var htmlProperties = reactProperty . html ;
8+ var svgProperties = reactProperty . svg ;
99var isCustomAttribute = reactProperty . isCustomAttribute ;
1010
1111var hasOwnProperty = Object . prototype . hasOwnProperty ;
@@ -36,8 +36,8 @@ function attributesToProps(attributes) {
3636
3737 // convert HTML attribute to React prop
3838 attributeNameLowerCased = attributeName . toLowerCase ( ) ;
39- if ( hasOwnProperty . call ( HTMLDOMPropertyConfig , attributeNameLowerCased ) ) {
40- property = HTMLDOMPropertyConfig [ attributeNameLowerCased ] ;
39+ if ( hasOwnProperty . call ( htmlProperties , attributeNameLowerCased ) ) {
40+ property = htmlProperties [ attributeNameLowerCased ] ;
4141 props [ property . propertyName ] =
4242 property . hasBooleanValue ||
4343 ( property . hasOverloadedBooleanValue && ! attributeValue )
@@ -47,8 +47,8 @@ function attributesToProps(attributes) {
4747 }
4848
4949 // 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 ] ;
5252 props [ property . propertyName ] = attributeValue ;
5353 continue ;
5454 }
0 commit comments