@@ -58,7 +58,7 @@ import {
5858} from './CSSPropertyOperations' ;
5959import { HTML_NAMESPACE , getIntrinsicNamespace } from './DOMNamespaces' ;
6060import { getPropertyInfo } from '../shared/DOMProperty' ;
61- import isCustomComponent from '../shared/isCustomComponent ' ;
61+ import isCustomElement from '../shared/isCustomElement ' ;
6262import possibleStandardNames from '../shared/possibleStandardNames' ;
6363import { validateProperties as validateARIAProperties } from '../shared/ReactDOMInvalidARIAHook' ;
6464import { validateProperties as validateInputProperties } from '../shared/ReactDOMNullInputValuePropHook' ;
@@ -264,7 +264,7 @@ function setProp(
264264 tag : string ,
265265 key : string ,
266266 value : mixed ,
267- isCustomComponentTag : boolean ,
267+ isCustomElementTag : boolean ,
268268 props : any ,
269269) : void {
270270 switch ( key ) {
@@ -390,7 +390,7 @@ function setProp(
390390 warnForInvalidEventListener ( key , value ) ;
391391 }
392392 } else {
393- if ( isCustomComponentTag ) {
393+ if ( isCustomElementTag ) {
394394 if ( enableCustomElementPropertySupport ) {
395395 setValueForPropertyOnCustomComponent ( domElement , key , value ) ;
396396 } else {
@@ -653,7 +653,7 @@ export function setInitialProperties(
653653 }
654654 // defaultChecked and defaultValue are ignored by setProp
655655 default : {
656- // TODO: If the `is` prop is specified, this should go through the isCustomComponentTag flow.
656+ // TODO: If the `is` prop is specified, this should go through the isCustomElementTag flow.
657657 setProp ( domElement , tag , propKey , propValue , false , props ) ;
658658 }
659659 }
@@ -662,8 +662,8 @@ export function setInitialProperties(
662662 }
663663 }
664664
665- const isCustomComponentTag =
666- enableCustomElementPropertySupport && isCustomComponent ( tag , props ) ;
665+ const isCustomElementTag =
666+ enableCustomElementPropertySupport && isCustomElement ( tag , props ) ;
667667 for ( const propKey in props ) {
668668 if ( ! props . hasOwnProperty ( propKey ) ) {
669669 continue ;
@@ -672,7 +672,7 @@ export function setInitialProperties(
672672 if ( propValue == null ) {
673673 continue ;
674674 }
675- setProp ( domElement , tag , propKey , propValue , isCustomComponentTag , props ) ;
675+ setProp ( domElement , tag , propKey , propValue , isCustomElementTag , props ) ;
676676 }
677677}
678678
@@ -949,7 +949,7 @@ export function updateProperties(
949949 }
950950 // defaultChecked and defaultValue are ignored by setProp
951951 default : {
952- // TODO: If the `is` prop is specified, this should go through the isCustomComponentTag flow.
952+ // TODO: If the `is` prop is specified, this should go through the isCustomElementTag flow.
953953 setProp ( domElement , tag , propKey , propValue , false , nextProps ) ;
954954 }
955955 }
@@ -958,20 +958,13 @@ export function updateProperties(
958958 }
959959 }
960960
961- const isCustomComponentTag =
962- enableCustomElementPropertySupport && isCustomComponent ( tag , nextProps ) ;
961+ const isCustomElementTag =
962+ enableCustomElementPropertySupport && isCustomElement ( tag , nextProps ) ;
963963 // Apply the diff.
964964 for ( let i = 0 ; i < updatePayload . length ; i += 2 ) {
965965 const propKey = updatePayload [ i ] ;
966966 const propValue = updatePayload [ i + 1 ] ;
967- setProp (
968- domElement ,
969- tag ,
970- propKey ,
971- propValue ,
972- isCustomComponentTag ,
973- nextProps ,
974- ) ;
967+ setProp ( domElement , tag , propKey , propValue , isCustomElementTag , nextProps ) ;
975968 }
976969}
977970
@@ -1357,7 +1350,7 @@ export function diffHydratedProperties(
13571350 extraAttributeNames . add ( attributes [ i ] . name ) ;
13581351 }
13591352 }
1360- if ( isCustomComponent ( tag , props ) ) {
1353+ if ( isCustomElement ( tag , props ) ) {
13611354 diffHydratedCustomComponent (
13621355 domElement ,
13631356 tag ,
0 commit comments