@@ -227,7 +227,7 @@ export function getOrCreateTNode(
227227 }
228228 } else if ( tNode . type == TNodeType . Placeholder ) {
229229 tNode . type = type ;
230- tNode . tagName = name ;
230+ tNode . value = name ;
231231 tNode . attrs = attrs ;
232232 const parent = getCurrentParentTNode ( ) ;
233233 tNode . injectorIndex = parent === null ? - 1 : parent . injectorIndex ;
@@ -834,7 +834,7 @@ export function createTNode(
834834 tagName : string | null , attrs : TAttributes | null ) : TNode ;
835835export function createTNode (
836836 tView : TView , tParent : TElementNode | TContainerNode | null , type : TNodeType , adjustedIndex : number ,
837- tagName : string | null , attrs : TAttributes | null ) : TNode {
837+ value : string | null , attrs : TAttributes | null ) : TNode {
838838 ngDevMode && assertNotSame ( attrs , undefined , '\'undefined\' is not valid value for \'attrs\'' ) ;
839839 ngDevMode && ngDevMode . tNode ++ ;
840840 ngDevMode && tParent && assertTNodeForTView ( tParent , tView ) ;
@@ -852,7 +852,7 @@ export function createTNode(
852852 null , // propertyBindings: number[]|null
853853 0 , // flags: TNodeFlags
854854 0 , // providerIndexes: TNodeProviderIndexes
855- tagName , // tagName : string|null
855+ value , // value : string|null
856856 attrs , // attrs: (string|AttributeMarker|(string|SelectorFlags)[])[]|null
857857 null , // mergedAttrs
858858 null , // localNames: (string|number)[]|null
@@ -885,7 +885,7 @@ export function createTNode(
885885 propertyBindings : null ,
886886 flags : 0 ,
887887 providerIndexes : 0 ,
888- tagName : tagName ,
888+ value : value ,
889889 attrs : attrs ,
890890 mergedAttrs : null ,
891891 localNames : null ,
@@ -1027,7 +1027,7 @@ export function elementPropertyInternal<T>(
10271027
10281028 // It is assumed that the sanitizer is only added when the compiler determines that the
10291029 // property is risky, so sanitization can be done without further checks.
1030- value = sanitizer != null ? ( sanitizer ( value , tNode . tagName || '' , propName ) as any ) : value ;
1030+ value = sanitizer != null ? ( sanitizer ( value , tNode . value || '' , propName ) as any ) : value ;
10311031 if ( isProceduralRenderer ( renderer ) ) {
10321032 renderer . setProperty ( element as RElement , propName , value ) ;
10331033 } else if ( ! isAnimationProp ( propName ) ) {
@@ -1037,7 +1037,7 @@ export function elementPropertyInternal<T>(
10371037 } else if ( tNode . type === TNodeType . Container || tNode . type === TNodeType . ElementContainer ) {
10381038 // If the node is a container and the property didn't
10391039 // match any of the inputs or schemas we should throw.
1040- if ( ngDevMode && ! matchingSchemas ( tView , tNode . tagName ) ) {
1040+ if ( ngDevMode && ! matchingSchemas ( tView , tNode . value ) ) {
10411041 logUnknownPropertyError ( propName , tNode ) ;
10421042 }
10431043 }
@@ -1104,7 +1104,7 @@ function validateProperty(
11041104
11051105 // The property is considered valid if the element matches the schema, it exists on the element
11061106 // or it is synthetic, and we are in a browser context (web worker nodes should be skipped).
1107- if ( matchingSchemas ( tView , tNode . tagName ) || propName in element || isAnimationProp ( propName ) ) {
1107+ if ( matchingSchemas ( tView , tNode . value ) || propName in element || isAnimationProp ( propName ) ) {
11081108 return true ;
11091109 }
11101110
@@ -1135,8 +1135,7 @@ export function matchingSchemas(tView: TView, tagName: string|null): boolean {
11351135 * @param tNode Node on which we encountered the property.
11361136 */
11371137function logUnknownPropertyError ( propName : string , tNode : TNode ) : void {
1138- console . error (
1139- `Can't bind to '${ propName } ' since it isn't a known property of '${ tNode . tagName } '.` ) ;
1138+ console . error ( `Can't bind to '${ propName } ' since it isn't a known property of '${ tNode . value } '.` ) ;
11401139}
11411140
11421141/**
@@ -1404,7 +1403,7 @@ function findDirectiveDefMatches(
14041403 if ( ngDevMode ) {
14051404 assertNodeOfPossibleTypes (
14061405 tNode , [ TNodeType . Element ] ,
1407- `"${ tNode . tagName } " tags cannot be used as component hosts. ` +
1406+ `"${ tNode . value } " tags cannot be used as component hosts. ` +
14081407 `Please use a different tag to activate the ${ stringify ( def . type ) } component.` ) ;
14091408
14101409 if ( tNode . flags & TNodeFlags . isComponentHost ) throwMultipleComponentError ( tNode ) ;
@@ -1525,7 +1524,7 @@ export function elementAttributeInternal(
15251524 `Host bindings are not valid on ng-container or ng-template.` ) ;
15261525 }
15271526 const element = getNativeByTNode ( tNode , lView ) as RElement ;
1528- setElementAttribute ( lView [ RENDERER ] , element , namespace , tNode . tagName , name , value , sanitizer ) ;
1527+ setElementAttribute ( lView [ RENDERER ] , element , namespace , tNode . value , name , value , sanitizer ) ;
15291528}
15301529
15311530export function setElementAttribute (
0 commit comments