@@ -58,7 +58,7 @@ import {
58
58
} from './CSSPropertyOperations' ;
59
59
import { HTML_NAMESPACE , getIntrinsicNamespace } from './DOMNamespaces' ;
60
60
import { getPropertyInfo } from '../shared/DOMProperty' ;
61
- import isCustomComponent from '../shared/isCustomComponent ' ;
61
+ import isCustomElement from '../shared/isCustomElement ' ;
62
62
import possibleStandardNames from '../shared/possibleStandardNames' ;
63
63
import { validateProperties as validateARIAProperties } from '../shared/ReactDOMInvalidARIAHook' ;
64
64
import { validateProperties as validateInputProperties } from '../shared/ReactDOMNullInputValuePropHook' ;
@@ -264,7 +264,7 @@ function setProp(
264
264
tag : string ,
265
265
key : string ,
266
266
value : mixed ,
267
- isCustomComponentTag : boolean ,
267
+ isCustomElementTag : boolean ,
268
268
props : any ,
269
269
) : void {
270
270
switch ( key ) {
@@ -390,7 +390,7 @@ function setProp(
390
390
warnForInvalidEventListener ( key , value ) ;
391
391
}
392
392
} else {
393
- if ( isCustomComponentTag ) {
393
+ if ( isCustomElementTag ) {
394
394
if ( enableCustomElementPropertySupport ) {
395
395
setValueForPropertyOnCustomComponent ( domElement , key , value ) ;
396
396
} else {
@@ -657,7 +657,7 @@ export function setInitialProperties(
657
657
}
658
658
// defaultChecked and defaultValue are ignored by setProp
659
659
default : {
660
- // TODO: If the `is` prop is specified, this should go through the isCustomComponentTag flow.
660
+ // TODO: If the `is` prop is specified, this should go through the isCustomElementTag flow.
661
661
setProp ( domElement , tag , propKey , propValue , false , props ) ;
662
662
}
663
663
}
@@ -666,7 +666,7 @@ export function setInitialProperties(
666
666
}
667
667
}
668
668
669
- const isCustomComponentTag = isCustomComponent ( tag , props ) ;
669
+ const isCustomElementTag = isCustomElement ( tag , props ) ;
670
670
for ( const propKey in props ) {
671
671
if ( ! props . hasOwnProperty ( propKey ) ) {
672
672
continue ;
@@ -675,7 +675,7 @@ export function setInitialProperties(
675
675
if ( propValue == null ) {
676
676
continue ;
677
677
}
678
- setProp ( domElement , tag , propKey , propValue , isCustomComponentTag , props ) ;
678
+ setProp ( domElement , tag , propKey , propValue , isCustomElementTag , props ) ;
679
679
}
680
680
}
681
681
@@ -952,7 +952,7 @@ export function updateProperties(
952
952
}
953
953
// defaultChecked and defaultValue are ignored by setProp
954
954
default : {
955
- // TODO: If the `is` prop is specified, this should go through the isCustomComponentTag flow.
955
+ // TODO: If the `is` prop is specified, this should go through the isCustomElementTag flow.
956
956
setProp ( domElement , tag , propKey , propValue , false , nextProps ) ;
957
957
}
958
958
}
@@ -961,19 +961,12 @@ export function updateProperties(
961
961
}
962
962
}
963
963
964
- const isCustomComponentTag = isCustomComponent ( tag , nextProps ) ;
964
+ const isCustomElementTag = isCustomElement ( tag , nextProps ) ;
965
965
// Apply the diff.
966
966
for ( let i = 0 ; i < updatePayload . length ; i += 2 ) {
967
967
const propKey = updatePayload [ i ] ;
968
968
const propValue = updatePayload [ i + 1 ] ;
969
- setProp (
970
- domElement ,
971
- tag ,
972
- propKey ,
973
- propValue ,
974
- isCustomComponentTag ,
975
- nextProps ,
976
- ) ;
969
+ setProp ( domElement , tag , propKey , propValue , isCustomElementTag , nextProps ) ;
977
970
}
978
971
}
979
972
@@ -1359,7 +1352,7 @@ export function diffHydratedProperties(
1359
1352
extraAttributeNames . add ( attributes [ i ] . name ) ;
1360
1353
}
1361
1354
}
1362
- if ( isCustomComponent ( tag , props ) ) {
1355
+ if ( isCustomElement ( tag , props ) ) {
1363
1356
diffHydratedCustomComponent (
1364
1357
domElement ,
1365
1358
tag ,
0 commit comments